From 872f76e68e2e9b882450ab42b70f579211025869 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Wed, 4 Sep 2013 11:55:51 +0900 Subject: fix wrong assertion fail when debug info contains more than one files --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index 95e5906d4..a521a5fe6 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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)); -- cgit v1.2.3