summaryrefslogtreecommitdiffhomepage
path: root/src/cdump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-05-12 02:41:30 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-05-12 02:41:30 -0700
commite7b4ea94e824a9ffdb2df542eb3864b0b18287c8 (patch)
treef50f10c735ae6720eb91d13481d2fe17ac5bc7e9 /src/cdump.c
parentf3374d7e95785d75710bea625fe47420c3978141 (diff)
parentc785382dee0a88d3a15389158f542604a911d39d (diff)
downloadmruby-e7b4ea94e824a9ffdb2df542eb3864b0b18287c8.tar.gz
mruby-e7b4ea94e824a9ffdb2df542eb3864b0b18287c8.zip
Merge pull request #120 from monaka/pr-printf-format-20110511
Use %d instead of %ld in case the type of parameter is int.
Diffstat (limited to 'src/cdump.c')
-rw-r--r--src/cdump.c2
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;
}