mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* complex.c (nucomp_expt): [ruby-core:44170].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e0ba59b708
commit
08df821865
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Apr 9 06:58:01 2012 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
|
* complex.c (nucomp_expt): [ruby-core:44170].
|
||||||
|
|
||||||
Mon Apr 9 02:52:03 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
Mon Apr 9 02:52:03 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* complex.c (nucomp_expt): the result of f_complex_new2 may be a fixnum
|
* complex.c (nucomp_expt): the result of f_complex_new2 may be a fixnum
|
||||||
|
|
|
@ -896,10 +896,7 @@ nucomp_expt(VALUE self, VALUE other)
|
||||||
z = f_mul(z, x);
|
z = f_mul(z, x);
|
||||||
n--;
|
n--;
|
||||||
}
|
}
|
||||||
{
|
return z;
|
||||||
get_dat1(z);
|
|
||||||
return f_complex_new2(CLASS_OF(self), dat->real, dat->imag);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return f_expt(f_reciprocal(self), f_negate(other));
|
return f_expt(f_reciprocal(self), f_negate(other));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue