draw: Prevent signed/unsigned comparisons.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 1 May 2014 14:41:43 +0000 (15:41 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 2 May 2014 21:04:46 +0000 (22:04 +0100)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pt_so_emit.c

index bd49d0adec6cbcbd845e64e467110469d5cac11d..91e67c0840d76f61bd9f93088d8d0b68bb6ede07 100644 (file)
@@ -162,7 +162,7 @@ static void so_emit_prim(struct pt_so_emit *so,
    for (i = 0; i < num_vertices; ++i) {
       const float (*input)[4];
       const float *pre_clip_pos = NULL;
-      int ob;
+      unsigned  ob;
 
       input = (const float (*)[4])(
          (const char *)input_ptr + (indices[i] * input_vertex_stride));