diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 11:06:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 11:06:47 +0000 |
commit | dc8afd385de88dfc77ed9d246f9664b87420eb03 (patch) | |
tree | 4cab3cf0bb89a79c7f4dd7425b5425709d2d28db /bignum.c | |
parent | dd046c59de93e9ecda0b56ec1eca10f8b4cda73e (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |