aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-12 13:17:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-12 13:17:04 +0000
commita395aca709c9a9ffa73b7f69071a540672005973 (patch)
tree0add7480e210a113c12cf1e6ac6cccf5985c567a /numeric.c
parent2ba248e7f48dfdd8625d580f34db3caa722acb4b (diff)
downloadruby-a395aca709c9a9ffa73b7f69071a540672005973.tar.gz
complex.c: rb_complex prefix
* complex.c (rb_complex_plus, rb_complex_mul): rename to rb_complex prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index af57ccdfc7..7296ab704a 100644
--- a/numeric.c
+++ b/numeric.c
@@ -3240,7 +3240,7 @@ fix_plus(VALUE x, VALUE y)
return DBL2NUM((double)FIX2LONG(x) + RFLOAT_VALUE(y));
}
else if (RB_TYPE_P(y, T_COMPLEX)) {
- return rb_nucomp_add(y, x);
+ return rb_complex_plus(y, x);
}
else {
return rb_num_coerce_bin(x, y, '+');
@@ -3342,7 +3342,7 @@ fix_mul(VALUE x, VALUE y)
return DBL2NUM((double)FIX2LONG(x) * RFLOAT_VALUE(y));
}
else if (RB_TYPE_P(y, T_COMPLEX)) {
- return rb_nucomp_mul(y, x);
+ return rb_complex_mul(y, x);
}
else {
return rb_num_coerce_bin(x, y, '*');