Fixed some compiler errors regarding PRId.

parent 09574922
...@@ -54,7 +54,7 @@ mrb_proc_inspect(mrb_state *mrb, mrb_value self) ...@@ -54,7 +54,7 @@ mrb_proc_inspect(mrb_state *mrb, mrb_value self)
if (line != -1) { if (line != -1) {
char buf[32]; char buf[32];
snprintf(buf, sizeof(buf), "%"MRB_PRId, line); snprintf(buf, sizeof(buf), "%" PRId32, line);
mrb_str_cat_cstr(mrb, str, buf); mrb_str_cat_cstr(mrb, str, buf);
} }
else { else {
......
...@@ -152,7 +152,7 @@ exc_inspect(mrb_state *mrb, mrb_value exc) ...@@ -152,7 +152,7 @@ exc_inspect(mrb_state *mrb, mrb_value exc)
char buf[32]; char buf[32];
str = mrb_str_dup(mrb, file); 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); mrb_str_cat_cstr(mrb, str, buf);
if (append_mesg) { if (append_mesg) {
mrb_str_cat_str(mrb, str, mesg); mrb_str_cat_str(mrb, str, mesg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment