summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-10-12 08:54:16 -0600
committerBrian Paul <brianp@vmware.com>2011-02-22 08:17:27 -0700
commit1bac4815a847540dc9a91823d0403f0f232abe9e (patch)
treedc9bdca4efa64ba2c6e4548fbbde3a717c8d1b2c
parentffd90332270f746fdec491fafdcb37fbaf1d0af1 (diff)
glsl2: fix signed/unsigned comparison warning
(cherry picked from commit 3633e1f538e42ac04700aa98b48e3157b3406c14)
-rw-r--r--src/glsl/loop_unroll.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/loop_unroll.cpp b/src/glsl/loop_unroll.cpp
index 57ab84af16d..5b84e101477 100644
--- a/src/glsl/loop_unroll.cpp
+++ b/src/glsl/loop_unroll.cpp
@@ -75,7 +75,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)