Mesa (7.9): glsl2: fix signed/unsigned comparison warning

Brian Paul brianp at kemper.freedesktop.org
Tue Feb 22 07:22:40 PST 2011


Module: Mesa
Branch: 7.9
Commit: 1bac4815a847540dc9a91823d0403f0f232abe9e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1bac4815a847540dc9a91823d0403f0f232abe9e

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Oct 12 08:54:16 2010 -0600

glsl2: fix signed/unsigned comparison warning
(cherry picked from commit 3633e1f538e42ac04700aa98b48e3157b3406c14)

---

 src/glsl/loop_unroll.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/loop_unroll.cpp b/src/glsl/loop_unroll.cpp
index 57ab84a..5b84e10 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)



More information about the mesa-commit mailing list