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 90797bde3755be122075f3b34621e97cd031c07d..11709587e24e57ce3c2adf43c2bb7d0463f4a68e 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)