summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-08 22:00:32 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-08 22:00:32 +0000
commit08df8218659167a99cd1b1a52c5eab0519c515dc (patch)
tree0023f0e656b080f397ea59225bfb4dc64fa50227
parente0ba59b708edb0fb5fdde4c7a2364d5e006705f7 (diff)
* complex.c (nucomp_expt): [ruby-core:44170].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--complex.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 219e034279..338f285686 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* complex.c (nucomp_expt): the result of f_complex_new2 may be a fixnum
diff --git a/complex.c b/complex.c
index 930c4453ec..a6538606f6 100644
--- a/complex.c
+++ b/complex.c
@@ -896,10 +896,7 @@ nucomp_expt(VALUE self, VALUE other)
z = f_mul(z, x);
n--;
}
- {
- get_dat1(z);
- return f_complex_new2(CLASS_OF(self), dat->real, dat->imag);
- }
+ return z;
}
return f_expt(f_reciprocal(self), f_negate(other));
}