Commit 872f76e6 authored by take_cheeze's avatar take_cheeze

fix wrong assertion fail when debug info contains more than one files

parent 2fe64f24
......@@ -24,7 +24,7 @@ get_file(mrb_irep_debug_info* info, uint32_t const pc)
--ret;
mrb_assert(ret <= info->files && ret < (info->files + info->flen));
mrb_assert(info->files <= ret && ret < (info->files + info->flen));
mrb_assert((*ret)->start_pos <= pc &&
pc < (((ret + 1 - info->files) < info->flen)
? (*(ret+1))->start_pos : info->pc_count));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment