use MRB_PRId instead of %d for mrb_int

parent 86027890
...@@ -17,7 +17,7 @@ istruct_test_initialize(mrb_state *mrb, mrb_value self) ...@@ -17,7 +17,7 @@ istruct_test_initialize(mrb_state *mrb, mrb_value self)
} }
else if (mrb_fixnum_p(object)) else if (mrb_fixnum_p(object))
{ {
snprintf(string, size, "fixnum(%d)", mrb_fixnum(object)); snprintf(string, size, "fixnum(%" MRB_PRId ")", mrb_fixnum(object));
} }
else if (mrb_string_p(object)) else if (mrb_string_p(object))
{ {
......
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