mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Copy mrb_float values from pool when MRB_WORD_BOXING; ref #3396
This commit is contained in:
@@ -859,7 +859,15 @@ RETRY_TRY_BLOCK:
|
||||
|
||||
CASE(OP_LOADL) {
|
||||
/* A Bx R(A) := Pool(Bx) */
|
||||
#ifdef MRB_WORD_BOXING
|
||||
mrb_value val = pool[GETARG_Bx(i)];
|
||||
if (mrb_float_p(val)) {
|
||||
val = mrb_float_value(mrb, mrb_float(val));
|
||||
}
|
||||
regs[GETARG_A(i)] = val;
|
||||
#else
|
||||
regs[GETARG_A(i)] = pool[GETARG_Bx(i)];
|
||||
#endif
|
||||
NEXT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user