* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b4bbfe4bb9
commit
e7fdfefd5c
@ -903,7 +903,7 @@ rb_complex_pow(VALUE self, VALUE other)
|
|||||||
if (FIXNUM_P(other)) {
|
if (FIXNUM_P(other)) {
|
||||||
long n = FIX2LONG(other);
|
long n = FIX2LONG(other);
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
return nucomp_s_new_internal(CLASS_OF(self), ONE, ZERO);
|
return nucomp_s_new_internal(CLASS_OF(self), ONE, ZERO);
|
||||||
}
|
}
|
||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
self = f_reciprocal(self);
|
self = f_reciprocal(self);
|
||||||
@ -938,7 +938,7 @@ rb_complex_pow(VALUE self, VALUE other)
|
|||||||
comp_mul(zr, zi, xr, xi, &zr, &zi);
|
comp_mul(zr, zi, xr, xi, &zr, &zi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nucomp_s_new_internal(CLASS_OF(self), zr, zi);
|
return nucomp_s_new_internal(CLASS_OF(self), zr, zi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (k_numeric_p(other) && f_real_p(other)) {
|
if (k_numeric_p(other) && f_real_p(other)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user