From: Brian Paul Date: Wed, 15 Sep 2010 18:47:32 +0000 (-0600) Subject: glsl2: fix signed/unsigned comparison warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7545514fb65f807fa2c888954f0ac153a918e2ce;p=mesa.git glsl2: fix signed/unsigned comparison warning --- 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);