mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix type
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3600eaca1
commit
7b653bd019
1 changed files with 1 additions and 1 deletions
2
math.c
2
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue