Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Jul 13, 2016
1 parent e3600ea commit 7b653bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7b653bd

Please sign in to comment.