From c785382dee0a88d3a15389158f542604a911d39d Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sat, 12 May 2012 04:45:49 +0900 Subject: Use %d instead of %ld in case the type of parameter is int. --- src/cdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cdump.c') 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; } -- cgit v1.2.3