diff options
author | Eric Anholt <[email protected]> | 2018-02-10 11:03:38 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-02-20 20:23:57 -0800 |
commit | 4636ce362d4defc70a2b40cab1f52d1c890f5673 (patch) | |
tree | b0cf6baf82849d664db0f9d97232784b1b2d9f73 /src/compiler/glsl | |
parent | 7075c084fc5699d76970d2f045c8c7c668dc53d8 (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]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/tests/array_refcount_test.cpp | 2 |
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; } |