diff options
author | Brian Paul <[email protected]> | 2010-09-15 12:47:32 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-09-15 12:47:32 -0600 |
commit | 7545514fb65f807fa2c888954f0ac153a918e2ce (patch) | |
tree | 89dabe7191405987707cb18cae3034742993a85c /src/mesa/program | |
parent | e0b6df4fcce0964ea7930efeb40cb487b4c53337 (diff) |
glsl2: fix signed/unsigned comparison warning
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 2edf01bb8f7..227dfdbd50a 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -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); |