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);