draw: Change slot from unsigned to int.
authorVinson Lee <vlee@freedesktop.org>
Tue, 6 Aug 2013 00:33:51 +0000 (17:33 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 6 Aug 2013 00:40:19 +0000 (17:40 -0700)
unfilled_stage::face_slot is of type int.

Fixes "Unsigned compared against 0" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_unfilled.c

index c6ee95c56b16a2b57c2b9bdc2cf0942b4696fbd5..68bab72265e2734b04b08bf9d754b16acb7353ce 100644 (file)
@@ -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 */