diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-02 15:46:00 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-02 15:46:00 -0800 |
| commit | dc27c2be462771b0c28d90759851aaba26659991 (patch) | |
| tree | 6b4ea610a90ba5556726553801b755ca6035f892 /src/codegen.c | |
| parent | 1012c595f23df6016073b981f938cc24d0730cab (diff) | |
| parent | 09bb30870b43feb967740842c3046372327b796b (diff) | |
| download | mruby-dc27c2be462771b0c28d90759851aaba26659991.tar.gz mruby-dc27c2be462771b0c28d90759851aaba26659991.zip | |
Merge pull request #1634 from cremno/use-mrb_fixnum_p
tiny word boxing optimization
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c index 32530e80f..d0ec12bac 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -421,7 +421,7 @@ new_lit(codegen_scope *s, mrb_value val) case MRB_TT_FIXNUM: for (i=0; i<s->irep->plen; i++) { pv = &s->irep->pool[i]; - if (mrb_type(*pv) != MRB_TT_FIXNUM) continue; + if (!mrb_fixnum_p(*pv)) continue; if (mrb_fixnum(*pv) == mrb_fixnum(val)) return i; } break; |
