glsl2: fix signed/unsigned comparison warning
authorBrian Paul <brianp@vmware.com>
Wed, 15 Sep 2010 18:47:32 +0000 (12:47 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 15 Sep 2010 18:47:32 +0000 (12:47 -0600)
src/mesa/program/ir_to_mesa.cpp

index 2edf01bb8f7cf74da529239a69803e0f40da90c6..227dfdbd50a772f90164ff7fc2f8c6c96ed4b9bb 100644 (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);