diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-25 02:33:33 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-25 02:33:33 +0900 |
| commit | 320f0711f08c54b709fccfbc07ba696e26c1a717 (patch) | |
| tree | dac12190981e11698366dac103fc894223382de6 /src/debug.c | |
| parent | d95c42eefdc3613aef54fb80dc2a0b49d5107bad (diff) | |
| download | mruby-320f0711f08c54b709fccfbc07ba696e26c1a717.tar.gz mruby-320f0711f08c54b709fccfbc07ba696e26c1a717.zip | |
remove -Wsign-compare warnings
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; |
