diff options
| author | Masaki Muranaka <[email protected]> | 2012-05-12 04:45:49 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2012-05-12 11:25:56 +0900 |
| commit | c785382dee0a88d3a15389158f542604a911d39d (patch) | |
| tree | 79659d5f68c52cf06a91684054c522cdc464f4ad /src/cdump.c | |
| parent | e6631bf5af382b55aa6d47f60ab64f251cef3136 (diff) | |
| download | mruby-c785382dee0a88d3a15389158f542604a911d39d.tar.gz mruby-c785382dee0a88d3a15389158f542604a911d39d.zip | |
Use %d instead of %ld in case the type of parameter is int.
Diffstat (limited to 'src/cdump.c')
| -rw-r--r-- | src/cdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cdump.c b/src/cdump.c index 7029ae3de..f9525d042 100644 --- a/src/cdump.c +++ b/src/cdump.c @@ -146,7 +146,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f) } } memset(buf, 0, buf_len); - SOURCE_CODE(" irep->pool[%d] = mrb_str_new(mrb, \"%s\", %ld);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; + SOURCE_CODE(" irep->pool[%d] = mrb_str_new(mrb, \"%s\", %d);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; /* TODO MRB_TT_REGEX */ default: break; } |
