From 7545514fb65f807fa2c888954f0ac153a918e2ce Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 15 Sep 2010 12:47:32 -0600 Subject: [PATCH] glsl2: fix signed/unsigned comparison warning --- src/mesa/program/ir_to_mesa.cpp | 4 ++-- 1 file 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); -- 2.30.2