summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-13 05:47:48 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-13 05:47:48 +0000
commit7b653bd019ee645df629c6c1c6f419d3913a047c (patch)
treecff1e85128a2556caade5c47e304c6612a6c3c8f /math.c
parente3600eaca1b74ffc59ac4821a05b48055ec5d0b5 (diff)
fix type
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55659 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 9cdf9e5565..87d487d8a6 100644
--- a/math.c
+++ b/math.c
@@ -615,7 +615,7 @@ rb_math_sqrt(VALUE x)
double d;
if (RB_TYPE_P(x, T_COMPLEX)) {
- int neg = f_signbit(RCOMPLEX(x)->imag);
+ VALUE neg = f_signbit(RCOMPLEX(x)->imag);
double re = Get_Double(RCOMPLEX(x)->real), im;
d = Get_Double(rb_complex_abs(x));
im = sqrt((d - re) / 2.0);