mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
printf precision parameter must be 'int' type
There is a problem when MRB_INT64 is enabled.
This commit is contained in:
+1
-1
@@ -216,7 +216,7 @@ print_backtrace(mrb_state *mrb, mrb_value backtrace)
|
||||
for (i = 0; i < n; i++) {
|
||||
mrb_value entry = RARRAY_PTR(backtrace)[i];
|
||||
|
||||
fprintf(stream, "\t[%d] %.*s\n", i, RSTRING_LEN(entry), RSTRING_PTR(entry));
|
||||
fprintf(stream, "\t[%d] %.*s\n", i, (int)RSTRING_LEN(entry), RSTRING_PTR(entry));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user