Make sure c is large enough if there is an overflow

This commit is contained in:
Carson McDonald
2014-05-13 11:46:29 -04:00
parent 33b2975c9d
commit 01988e3be7
+2 -1
View File
@@ -702,7 +702,8 @@ mrb_fixnum_mul(mrb_state *mrb, mrb_value x, mrb_value y)
a = mrb_fixnum(x);
if (mrb_fixnum_p(y)) {
mrb_int b, c;
mrb_float c;
mrb_int b;
if (a == 0) return x;
b = mrb_fixnum(y);