From 320f0711f08c54b709fccfbc07ba696e26c1a717 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 25 Apr 2014 02:33:33 +0900 Subject: remove -Wsign-compare warnings --- 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 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; -- cgit v1.2.3