ruby-changes:43586
From: naruse <ko1@a...>
Date: Wed, 13 Jul 2016 14:47:55 +0900 (JST)
Subject: [ruby-changes:43586] naruse:r55659 (trunk): fix type
naruse 2016-07-13 14:47:48 +0900 (Wed, 13 Jul 2016) New Revision: 55659 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55659 Log: fix type Modified files: trunk/math.c Index: math.c =================================================================== --- math.c (revision 55658) +++ math.c (revision 55659) @@ -615,7 +615,7 @@ rb_math_sqrt(VALUE x) https://github.com/ruby/ruby/blob/trunk/math.c#L615 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/