aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-12 11:06:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-12 11:06:47 +0000
commitdc8afd385de88dfc77ed9d246f9664b87420eb03 (patch)
tree4cab3cf0bb89a79c7f4dd7425b5425709d2d28db /bignum.c
parentdd046c59de93e9ecda0b56ec1eca10f8b4cda73e (diff)
downloadruby-dc8afd385de88dfc77ed9d246f9664b87420eb03.tar.gz
complex.c: rb_complex_new_polar
* complex.c (rb_complex_new_polar): renamed with _new to clarify that it creates a new instance, but is not an instance method. * complex.c (rb_complex_polar): deprecated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index b3046f2017..ee3b49fd04 100644
--- a/bignum.c
+++ b/bignum.c
@@ -6237,7 +6237,7 @@ rb_big_pow(VALUE x, VALUE y)
if (RB_FLOAT_TYPE_P(y)) {
d = RFLOAT_VALUE(y);
if ((BIGNUM_NEGATIVE_P(x) && !BIGZEROP(x))) {
- return rb_dbl_complex_polar_pi(pow(-rb_big2dbl(x), d), d);
+ return rb_dbl_complex_new_polar_pi(pow(-rb_big2dbl(x), d), d);
}
}
else if (RB_BIGNUM_TYPE_P(y)) {