OSDN Git Service

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 b48b991..1a260c7 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 {