Skip to content
Permalink
Browse files
printf precision parameter must be 'int' type
There is a problem when MRB_INT64 is enabled.
  • Loading branch information
syohex committed Jan 7, 2016
1 parent ec71191 commit 931cc0359ae2a978a448061ebbd69d3c1f3a3539
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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));
}
}

0 comments on commit 931cc03

Please sign in to comment.