Navigation Menu

Skip to content

Commit

Permalink
printf precision parameter must be 'int' type
Browse files Browse the repository at this point in the history
There is a problem when MRB_INT64 is enabled.
  • Loading branch information
syohex committed Jan 7, 2016
1 parent ec71191 commit 931cc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backtrace.c
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 931cc03

Please sign in to comment.