Skip to content
Permalink
Browse files
Fixed some compiler errors regarding PRId.
  • Loading branch information
matz committed Mar 19, 2017
1 parent 0957492 commit cea6a16cf41b5268a0ad38d1c6ab3140e375f0f3
Showing 2 changed files with 2 additions and 2 deletions.
@@ -54,7 +54,7 @@ mrb_proc_inspect(mrb_state *mrb, mrb_value self)
if (line != -1) {
char buf[32];

snprintf(buf, sizeof(buf), "%"MRB_PRId, line);
snprintf(buf, sizeof(buf), "%" PRId32, line);
mrb_str_cat_cstr(mrb, str, buf);
}
else {
@@ -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), ":%"MRB_PRId": ", 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);

0 comments on commit cea6a16

Please sign in to comment.