glsl2: fix signed/unsigned comparison warning

(cherry picked from commit 7545514fb6)
This commit is contained in:
Brian Paul 2010-09-15 12:47:32 -06:00 committed by Ian Romanick
parent c0f82e619c
commit e68ec2212f

View file

@ -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);