mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
glsl2: fix signed/unsigned comparison warning
(cherry picked from commit 7545514fb6)
This commit is contained in:
parent
c0f82e619c
commit
e68ec2212f
1 changed files with 2 additions and 2 deletions
|
|
@ -898,8 +898,8 @@ ir_to_mesa_visitor::visit(ir_variable *ir)
|
|||
if (storage->index == -1) {
|
||||
storage->index = index;
|
||||
} else {
|
||||
assert(index == ((int)storage->index +
|
||||
a * statevar->num_elements + i));
|
||||
assert(index ==
|
||||
(int)(storage->index + a * statevar->num_elements + i));
|
||||
}
|
||||
} else {
|
||||
ir_to_mesa_src_reg src(PROGRAM_STATE_VAR, index, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue