diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1360,7 +1360,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) x = mrb_fixnum(regs[a]); y = mrb_fixnum(regs[a+1]); z = x * y; - if (z/x != y) { + if (x != 0 && z/x != y) { regs[a] = mrb_float_value((mrb_float)x * (mrb_float)y); } else { |
