diff options
| author | Yuichiro MASUI <[email protected]> | 2013-01-26 01:05:20 +0900 |
|---|---|---|
| committer | Yuichiro MASUI <[email protected]> | 2013-01-26 01:05:20 +0900 |
| commit | 5a681874dd8fbd5446615710fcd4320a2f1438c9 (patch) | |
| tree | 9d026e4e85bfe05c2673100fe72855e59ab18077 /src | |
| parent | 688cf0409496a38faad9d95164bdbcc5c04c16b5 (diff) | |
| download | mruby-5a681874dd8fbd5446615710fcd4320a2f1438c9.tar.gz mruby-5a681874dd8fbd5446615710fcd4320a2f1438c9.zip | |
defined printf macro for mrb_int
Diffstat (limited to 'src')
| -rw-r--r-- | src/cdump.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cdump.c b/src/cdump.c index 31fe89f81..7beb3544f 100644 --- a/src/cdump.c +++ b/src/cdump.c @@ -145,11 +145,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f) case MRB_TT_FLOAT: SOURCE_CODE(" irep->pool[%d] = mrb_float_value(%.16e);", n, mrb_float(irep->pool[n])); break; case MRB_TT_FIXNUM: - { - char num_buf[64]; - mrb_int_to_str(num_buf, mrb_fixnum(irep->pool[n])); - SOURCE_CODE(" irep->pool[%d] = mrb_fixnum_value(%s);", n, num_buf); break; - } + SOURCE_CODE(" irep->pool[%d] = mrb_fixnum_value(%" MRB_INT_FORMAT ");", n, mrb_fixnum(irep->pool[n])); break; case MRB_TT_STRING: str_len = str_format_len(irep->pool[n]) + 1; if ( str_len > buf_len ) { |
