mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use MRB_PRId instead of "%d"; fix #3515
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user