summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex/src
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-08-02 17:15:34 +0900
committerKOBAYASHI Shuji <[email protected]>2019-08-02 19:22:08 +0900
commitd1817e77910a2747d2bc602964a5f51a1490a252 (patch)
treec28a69d2f764d4026d38b0b168652d4a8fc57646 /mrbgems/mruby-complex/src
parent3bacc302a3b3dd875de87d895cb9b532b522a4f0 (diff)
downloadmruby-d1817e77910a2747d2bc602964a5f51a1490a252.tar.gz
mruby-d1817e77910a2747d2bc602964a5f51a1490a252.zip
Change the `mrb_vformat` specifier `%d` for `int`
It potentially breaks, for example, in the case of `mrb_int` is 64-bit and more smaller type is passed by `%d`. In fact, the problem could become apparent when I used `%d` to `backtrace_location::lineno` in `src/backtrace.c:mrb_unpack_backtrace()` on AppVeyor. Therefore, change `%d` for `int` (not `mrb_int`) so that it can be used mostly without casting.
Diffstat (limited to 'mrbgems/mruby-complex/src')
0 files changed, 0 insertions, 0 deletions