[Mesa-dev] [PATCH 4/9] draw: Prevent signed/unsigned comparisons.

jfonseca at vmware.com jfonseca at vmware.com
Fri May 2 08:11:51 PDT 2014


From: José Fonseca <jfonseca at vmware.com>

---
 src/gallium/auxiliary/draw/draw_pt_so_emit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/draw/draw_pt_so_emit.c b/src/gallium/auxiliary/draw/draw_pt_so_emit.c
index bd49d0a..91e67c0 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));
-- 
1.9.1



More information about the mesa-dev mailing list