summaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 22:30:45 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 22:30:45 +0000
commitaaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476 (patch)
tree88a2bb74ffc76c0efc2c03ba67eb549d58a7bf88 /math.c
parent711f429d0215b364916f7f171981ea85059bcbcf (diff)
downloadruby-aaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476.tar.gz
ruby-aaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476.tar.xz
ruby-aaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476.zip
* complex.c (nucomp_div): [ruby-dev:34357]
* complex.c (nucomp_abs): use hypot. * complex.c (nucomp_quo): do not force convertion. * test/ruby/test_complex.rb: omitted some meaningless tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index 815d9e72f..fe25c4c0a 100644
--- a/math.c
+++ b/math.c
@@ -465,7 +465,7 @@ math_ldexp(VALUE obj, VALUE x, VALUE n)
* Math.hypot(3, 4) #=> 5.0
*/
-static VALUE
+VALUE
math_hypot(VALUE obj, VALUE x, VALUE y)
{
Need_Float2(x, y);