summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-03-19 20:41:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-03-19 20:43:25 +0900
commitef105b5ca41018f30c38f9738d5b54c4aa0fe6e4 (patch)
tree14f8db4ca553494a7cc27f187f834bdab55463ff /src/error.c
parent4cf38eb9032ab70544f940941703a0c09529539f (diff)
downloadmruby-ef105b5ca41018f30c38f9738d5b54c4aa0fe6e4.tar.gz
mruby-ef105b5ca41018f30c38f9738d5b54c4aa0fe6e4.zip
Use MRB_PRId instead of "%d"; fix #3515
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.c b/src/error.c
index 93e90fc69..3ef57f895 100644
--- a/src/error.c
+++ b/src/error.c
@@ -152,7 +152,7 @@ exc_inspect(mrb_state *mrb, mrb_value exc)
char buf[32];
str = mrb_str_dup(mrb, file);
- snprintf(buf, sizeof(buf), ":%d: ", mrb_fixnum(line));
+ snprintf(buf, sizeof(buf), ":%"MRB_PRId": ", mrb_fixnum(line));
mrb_str_cat_cstr(mrb, str, buf);
if (append_mesg) {
mrb_str_cat_str(mrb, str, mesg);