From ef105b5ca41018f30c38f9738d5b54c4aa0fe6e4 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 19 Mar 2017 20:41:51 +0900 Subject: Use MRB_PRId instead of "%d"; fix #3515 --- src/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3