diff options
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index 0af0f48f7..ea1aa1ddc 100644 --- a/src/debug.c +++ b/src/debug.c @@ -95,7 +95,7 @@ mrb_debug_get_line(mrb_irep *irep, uint32_t pc) mrb_assert(f->lines.flat_map <= ret && ret < (f->lines.flat_map + f->line_entry_count)); /* check pc range */ mrb_assert(ret->start_pos <= pc && - pc < (((ret + 1 - f->lines.flat_map) < f->line_entry_count) + pc < (((uint32_t)(ret + 1 - f->lines.flat_map) < f->line_entry_count) ? (ret+1)->start_pos : irep->debug_info->pc_count)); return ret->line; |
