diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-07-05 01:34:35 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-07-05 01:34:35 +0900 |
| commit | 07bcd6bed8b608d3e01f62f849dbd6d33accea85 (patch) | |
| tree | d01b71b3a5ee9f8559565784fa12d3a56d37956e | |
| parent | 0e9e0693b46438e37e915d9973210d39048db2c1 (diff) | |
| download | mruby-07bcd6bed8b608d3e01f62f849dbd6d33accea85.tar.gz mruby-07bcd6bed8b608d3e01f62f849dbd6d33accea85.zip | |
cdump.c: pool may contain fixnum value
| -rw-r--r-- | src/cdump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cdump.c b/src/cdump.c index 1b67f6205..f2ba8e8ea 100644 --- a/src/cdump.c +++ b/src/cdump.c @@ -139,7 +139,9 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f) switch (irep->pool[n].tt) { case MRB_TT_FLOAT: SOURCE_CODE(" irep->pool[%d] = mrb_float_value(%.16e);", n, irep->pool[n].value.f); break; - case MRB_TT_STRING: + case MRB_TT_FIXNUM: + SOURCE_CODE(" irep->pool[%d] = mrb_fixnum_value(%d);", n, irep->pool[n].value.i); break; + case MRB_TT_STRING: str_len = str_format_len(irep->pool[n]) + 1; if ( str_len > buf_len ) { buf_len = str_len; |
