mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Make sure c is large enough if there is an overflow
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user