From: Vinson Lee Date: Tue, 6 Aug 2013 00:33:51 +0000 (-0700) Subject: draw: Change slot from unsigned to int. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e850f2febd7b37485675e58e31221fc71080dd4;p=mesa.git draw: Change slot from unsigned to int. unfilled_stage::face_slot is of type int. Fixes "Unsigned compared against 0" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/draw/draw_pipe_unfilled.c b/src/gallium/auxiliary/draw/draw_pipe_unfilled.c index c6ee95c56b1..68bab72265e 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_unfilled.c +++ b/src/gallium/auxiliary/draw/draw_pipe_unfilled.c @@ -67,7 +67,7 @@ inject_front_face_info(struct draw_stage *stage, boolean is_front_face = ( (stage->draw->rasterizer->front_ccw && ccw) || (!stage->draw->rasterizer->front_ccw && !ccw)); - unsigned slot = unfilled->face_slot; + int slot = unfilled->face_slot; unsigned i; /* In case the backend doesn't care about it */