summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
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 af57ccdfc74..7296ab704ae 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, '*');