diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-12 09:35:35 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-12 09:35:35 +0900 |
| commit | 8bf492f12707777c321dcf40494f757947649f62 (patch) | |
| tree | d03211047847039b1f3387a00d2a76c53e46c98e /src/debug.c | |
| parent | baa5d2e3f72cb036c8c4e4f434b584998caaaa2c (diff) | |
| download | mruby-8bf492f12707777c321dcf40494f757947649f62.tar.gz mruby-8bf492f12707777c321dcf40494f757947649f62.zip | |
Reduce integer type mismatch warnings in VC.
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c index 8e431af95..7c04ad148 100644 --- a/src/debug.c +++ b/src/debug.c @@ -51,7 +51,7 @@ select_line_type(const uint16_t *lines, size_t lines_len) } MRB_API char const* -mrb_debug_get_filename(mrb_irep *irep, uint32_t pc) +mrb_debug_get_filename(mrb_irep *irep, ptrdiff_t pc) { if (irep && pc < irep->ilen) { mrb_irep_debug_info_file* f = NULL; @@ -64,7 +64,7 @@ mrb_debug_get_filename(mrb_irep *irep, uint32_t pc) } MRB_API int32_t -mrb_debug_get_line(mrb_irep *irep, uint32_t pc) +mrb_debug_get_line(mrb_irep *irep, ptrdiff_t pc) { if (irep && pc < irep->ilen) { mrb_irep_debug_info_file* f = NULL; |
