mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
glsl: fix signed/unsigned comparison warning
This commit is contained in:
parent
1d34927061
commit
2a429f9d9c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue