diff options
author | Brian Paul <[email protected]> | 2013-10-11 09:20:56 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-11 17:07:44 -0600 |
commit | 2a429f9d9c3ef3f5ec5e4946c5b20b24738fa789 (patch) | |
tree | 1c88ade8bed678374b3c12c16b0d547463ae14b4 /src | |
parent | 1d3492706156b2caa7eb3b84125dbabc999695aa (diff) |
glsl: fix signed/unsigned comparison warning
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir_validate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp index 7bc712236f4..13e41a08901 100644 --- a/src/glsl/ir_validate.cpp +++ b/src/glsl/ir_validate.cpp @@ -694,7 +694,7 @@ ir_validate::visit(ir_variable *ir) if (ir->is_interface_instance()) { const glsl_struct_field *fields = ir->get_interface_type()->fields.structure; - for (int i = 0; i < ir->get_interface_type()->length; i++) { + for (unsigned i = 0; i < ir->get_interface_type()->length; i++) { if (fields[i].type->array_size() > 0) { if (ir->max_ifc_array_access[i] >= fields[i].type->length) { printf("ir_variable has maximum access out of bounds for " |