diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-08-02 17:15:34 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-08-02 19:22:08 +0900 |
| commit | d1817e77910a2747d2bc602964a5f51a1490a252 (patch) | |
| tree | c28a69d2f764d4026d38b0b168652d4a8fc57646 /src/range.c | |
| parent | 3bacc302a3b3dd875de87d895cb9b532b522a4f0 (diff) | |
| download | mruby-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 'src/range.c')
0 files changed, 0 insertions, 0 deletions
