projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7075c08
)
glsl/tests: Fix a compiler warning about signed/unsigned loop comparison.
author
Eric Anholt
<eric@anholt.net>
Sat, 10 Feb 2018 11:03:38 +0000
(11:03 +0000)
committer
Eric Anholt
<eric@anholt.net>
Wed, 21 Feb 2018 04:23:57 +0000
(20:23 -0800)
Fixes: d32956935edf ("glsl: Walk a list of ir_dereference_array to mark array elements as accessed")
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/tests/array_refcount_test.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/tests/array_refcount_test.cpp
b/src/compiler/glsl/tests/array_refcount_test.cpp
index ecd7f46900b8913bf1e70012c65f7d21818bab29..0d8f4521caed02396ae36ce1a98c6236e45c8bcb 100644
(file)
--- 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;
}