From cea6a16cf41b5268a0ad38d1c6ab3140e375f0f3 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 19 Mar 2017 23:42:49 +0900 Subject: Fixed some compiler errors regarding PRId. --- mrbgems/mruby-proc-ext/src/proc.c | 2 +- src/error.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mrbgems/mruby-proc-ext/src/proc.c b/mrbgems/mruby-proc-ext/src/proc.c index 1e033cbfb..8c9e300dc 100644 --- a/mrbgems/mruby-proc-ext/src/proc.c +++ b/mrbgems/mruby-proc-ext/src/proc.c @@ -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 { diff --git a/src/error.c b/src/error.c index 3ef57f895..2201fc840 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), ":%"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); -- cgit v1.2.3