glsl2: fix signed/unsigned comparison warning
authorBrian Paul <brianp@vmware.com>
Tue, 12 Oct 2010 14:54:16 +0000 (08:54 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Oct 2010 14:54:16 +0000 (08:54 -0600)
src/glsl/loop_unroll.cpp

index 90797bd..1170958 100644 (file)
@@ -67,7 +67,7 @@ loop_unroll_visitor::visit_leave(ir_loop *ir)
 
    /* Don't try to unroll loops that have zillions of iterations either.
     */
-   if (iterations > max_iterations)
+   if (iterations > (int) max_iterations)
       return visit_continue;
 
    if (ls->num_loop_jumps > 1)