From: José Fonseca Date: Thu, 1 May 2014 14:41:43 +0000 (+0100) Subject: draw: Prevent signed/unsigned comparisons. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d69fd5d940b7c0c4052fe542d5f2dcf6d2605e02;p=mesa.git draw: Prevent signed/unsigned comparisons. Reviewed-by: Brian Paul Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/draw/draw_pt_so_emit.c b/src/gallium/auxiliary/draw/draw_pt_so_emit.c index bd49d0adec6..91e67c0840d 100644 --- a/src/gallium/auxiliary/draw/draw_pt_so_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_so_emit.c @@ -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));