From 0652d44cff2021c908e4b76572e59469c9057598 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 18 Jun 2007 11:52:59 +0000 Subject: [PATCH] Fixed warnings [r14578] --- ir/lower/lower_intrinsics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/lower/lower_intrinsics.c b/ir/lower/lower_intrinsics.c index 37b5d7fbd..03b6fc6ed 100644 --- a/ir/lower/lower_intrinsics.c +++ b/ir/lower/lower_intrinsics.c @@ -74,7 +74,7 @@ static void call_mapper(ir_node *node, void *env) { wenv->nr_of_intrinsics += r->i_mapper(node, r->ctx) ? 1 : 0; } } else { - if (0 <= op->code && op->code < ARR_LEN(wenv->i_map)) { + if (op->code < (unsigned)ARR_LEN(wenv->i_map)) { const i_instr_record *r = wenv->i_map[op->code]; /* run all possible mapper */ while (r) { @@ -107,7 +107,7 @@ unsigned lower_intrinsics(i_record *list, int length) { pmap_insert(c_map, list[i].i_call.i_ent, (void *)&list[i].i_call); } else { ir_op *op = list[i].i_instr.op; - assert(0 <= op->code && op->code < ARR_LEN(i_map)); + assert(op->code < (unsigned)ARR_LEN(i_map)); list[i].i_instr.link = i_map[op->code]; i_map[op->code] = &list[i].i_instr; -- 2.20.1