float objects in pool are objects when MRB_WORD_BOXING is set

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-11-27 17:29:28 +09:00
parent e9e1259b61
commit 9ac386923d
5 changed files with 24 additions and 3 deletions
+4
View File
@@ -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;