Add bytecode support for MRB_WORD_BOXING.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-08-16 22:29:28 +09:00
parent eeb6d5658d
commit b7e56e9d20
+1 -1
View File
@@ -2480,7 +2480,7 @@ RETRY_TRY_BLOCK:
#ifdef MRB_WORD_BOXING
{
mrb_float x = mrb_float(regs[a]);
SET_FLOAT_VALUE(mrb, regs[a], x - c);
SET_FLOAT_VALUE(mrb, regs[a], (mrb_float)x - (mrb_float)c);
}
#else
mrb_float(regs_a[0]) -= c;