diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-25 15:41:29 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-25 15:45:32 +0900 |
| commit | 0903e2a72e8f3aa848fdbb60f1ceece7af3d1cb4 (patch) | |
| tree | 7ed6a279752f227b2a6afc24edf9f8fb3c6bbc31 /src/codedump.c | |
| parent | efef4541aa97460b80618af369879881b376cc30 (diff) | |
| download | mruby-0903e2a72e8f3aa848fdbb60f1ceece7af3d1cb4.tar.gz mruby-0903e2a72e8f3aa848fdbb60f1ceece7af3d1cb4.zip | |
Silence 'loss of data' warnings.
Diffstat (limited to 'src/codedump.c')
| -rw-r--r-- | src/codedump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codedump.c b/src/codedump.c index e6c6e6c3d..3a7b34354 100644 --- a/src/codedump.c +++ b/src/codedump.c @@ -42,7 +42,7 @@ print_lv_ab(mrb_state *mrb, const mrb_irep *irep, uint16_t a, uint16_t b) } static void -print_header(mrb_state *mrb, const mrb_irep *irep, ptrdiff_t i) +print_header(mrb_state *mrb, const mrb_irep *irep, uint32_t i) { int32_t line; @@ -120,12 +120,12 @@ codedump(mrb_state *mrb, const mrb_irep *irep) ai = mrb_gc_arena_save(mrb); i = pc - irep->iseq; - next_file = mrb_debug_get_filename(mrb, irep, i); + next_file = mrb_debug_get_filename(mrb, irep, (uint32_t)i); if (next_file && file != next_file) { printf("file: %s\n", next_file); file = next_file; } - print_header(mrb, irep, i); + print_header(mrb, irep, (uint32_t)i); ins = READ_B(); switch (ins) { CASE(OP_NOP, Z); |
