i965: fix comparison warning
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 1 Aug 2016 00:35:06 +0000 (10:35 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 1 Aug 2016 04:52:07 +0000 (14:52 +1000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 3309f61a06c673716d010c3e52eb24df29d22003..d1ac80a78fcacf99f60a8165dc0466434478cb8c 100644 (file)
@@ -6381,7 +6381,7 @@ move_interpolation_to_top(nir_shader *nir)
                instr
             };
 
-            for (int i = 0; i < ARRAY_SIZE(move); i++) {
+            for (unsigned i = 0; i < ARRAY_SIZE(move); i++) {
                if (move[i]->block != top) {
                   move[i]->block = top;
                   exec_node_remove(&move[i]->node);