From: Eric Anholt Date: Sat, 10 Feb 2018 11:03:38 +0000 (+0000) Subject: glsl/tests: Fix a compiler warning about signed/unsigned loop comparison. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4636ce362d4defc70a2b40cab1f52d1c890f5673;p=mesa.git glsl/tests: Fix a compiler warning about signed/unsigned loop comparison. Fixes: d32956935edf ("glsl: Walk a list of ir_dereference_array to mark array elements as accessed") Reviewed-by: Ian Romanick --- diff --git a/src/compiler/glsl/tests/array_refcount_test.cpp b/src/compiler/glsl/tests/array_refcount_test.cpp index ecd7f46900b..0d8f4521cae 100644 --- a/src/compiler/glsl/tests/array_refcount_test.cpp +++ b/src/compiler/glsl/tests/array_refcount_test.cpp @@ -628,7 +628,7 @@ TEST_F(array_refcount_test, visit_array_indexing_an_array) ir_array_refcount_entry *const entry_c = v.get_variable_entry(var_c); - for (unsigned i = 0; i < var_c->type->array_size(); i++) { + for (int i = 0; i < var_c->type->array_size(); i++) { EXPECT_EQ(true, entry_c->is_linearized_index_referenced(i)) << "array c, i = " << i; }