diff options
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, '*'); |