diff options
| author | take_cheeze <[email protected]> | 2013-09-04 11:55:51 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2013-09-04 11:55:51 +0900 |
| commit | 872f76e68e2e9b882450ab42b70f579211025869 (patch) | |
| tree | 1d64a5e8c92e4d54ab89443761711f09866cb179 /src/debug.c | |
| parent | 2fe64f24f8564be3219e6a9bd89c3ad33f80804d (diff) | |
| download | mruby-872f76e68e2e9b882450ab42b70f579211025869.tar.gz mruby-872f76e68e2e9b882450ab42b70f579211025869.zip | |
fix wrong assertion fail when debug info contains more than one files
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 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)); |
