aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 13:09:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 13:09:26 +0000
commit6e60d2cee8ea6f1037bbbda9a7d9e3090cfd95b4 (patch)
tree508551c367d746baa87940f9fd4ec6ceeac1a463 /internal.h
parentf226f5c38ab56482d4aa6e179873ec0137fe66c8 (diff)
downloadruby-6e60d2cee8ea6f1037bbbda9a7d9e3090cfd95b4.tar.gz
internal.h: fix no-DLONG case
* internal.h (rb_fix_mul_fix): multiply converted values, not object VALUEs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal.h b/internal.h
index af4cc98aed..48acd5bb0c 100644
--- a/internal.h
+++ b/internal.h
@@ -284,11 +284,11 @@ rb_fix_mul_fix(VALUE x, VALUE y)
#ifdef DLONG
return DL2NUM((DLONG)lx * (DLONG)ly);
#else
- if (MUL_OVERFLOW_FIXNUM_P(x, y)) {
- return rb_big_mul(rb_int2big(x), rb_int2big(y));
+ if (MUL_OVERFLOW_FIXNUM_P(lx, ly)) {
+ return rb_big_mul(rb_int2big(lx), rb_int2big(ly));
}
else {
- return LONG2FIX(x * y);
+ return LONG2FIX(lx * ly);
}
#endif
}