From 3cb10cce371cb62e0c4a988ab939bf640b75ebab Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Thu, 15 Jan 2015 13:41:04 -0500 Subject: mesa: Fix some signed-unsigned comparison warnings v2: s/unsigned int/unsigned/ in prog_optimize.c Signed-off-by: Jan Vesely Reviewed-by: David Heidelberg Reviewed-by: Jose Fonseca --- src/mesa/state_tracker/st_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/state_tracker/st_program.c') diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 737c2694e7f..10a5f2900da 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -1095,7 +1095,7 @@ st_translate_geometry_program(struct st_context *st, /* find max output slot referenced to compute gs_num_outputs */ for (attr = 0; attr < VARYING_SLOT_MAX; attr++) { - if (outputMapping[attr] != ~0 && outputMapping[attr] > maxSlot) + if (outputMapping[attr] != ~0U && outputMapping[attr] > maxSlot) maxSlot = outputMapping[attr]; } gs_num_outputs = maxSlot + 1; -- cgit v1.2.3