mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
float objects in pool are objects when MRB_WORD_BOXING is set
This commit is contained in:
@@ -444,6 +444,10 @@ new_lit(codegen_scope *s, mrb_value val)
|
||||
break;
|
||||
|
||||
case MRB_TT_FLOAT:
|
||||
#ifdef MRB_WORD_BOXING
|
||||
*pv = mrb_float_pool(s->mrb, mrb_float(val));
|
||||
break;
|
||||
#endif
|
||||
case MRB_TT_FIXNUM:
|
||||
*pv = val;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user