ir_to_mesa: Fix warning in last commit.
authorEric Anholt <eric@anholt.net>
Tue, 7 Sep 2010 21:02:39 +0000 (14:02 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Sep 2010 21:26:53 +0000 (14:26 -0700)
I swear there was some git option for "don't push things when you've
got uncommitted changes", but I can't find it now.

src/mesa/program/ir_to_mesa.cpp

index b48b9912a5c8e2bc532aaa61d4e858ce0e86c424..1a260c7e5366bc63738c7ab568ee2b2703e9367d 100644 (file)
@@ -892,7 +892,7 @@ ir_to_mesa_visitor::visit(ir_variable *ir)
               if (storage->index == -1) {
                  storage->index = index;
               } else {
-                 assert(index == (storage->index +
+                 assert(index == ((int)storage->index +
                                   a * statevar->num_elements + i));
               }
            } else {