summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-02-10 11:03:38 +0000
committerEmil Velikov <[email protected]>2018-03-20 16:57:24 +0000
commit387b90a5a5e1b7435c573f2b1fe1d5eafc93a0b8 (patch)
treec23b514b403331e4185488ad106f9003dbc899d7 /src
parentd8bd4667025e53e44747522a2a925c33b3d9d3e6 (diff)
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 <[email protected]> (cherry picked from commit 4636ce362d4defc70a2b40cab1f52d1c890f5673)
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl/tests/array_refcount_test.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}