diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-27 17:29:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-27 17:29:28 +0900 |
| commit | 9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9 (patch) | |
| tree | 391196c4f63325b549a42529421e222a78d02f41 /src/codegen.c | |
| parent | e9e1259b61ec869eb64f0c872508957eb7a9d2b8 (diff) | |
| download | mruby-9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9.tar.gz mruby-9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9.zip | |
float objects in pool are objects when MRB_WORD_BOXING is set
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c index 9d55297a7..8c38615a4 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -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; |
