Module: Mesa
Branch: master
Commit: 59c957b688651a4c7fa4660ee7a404bd83e8bb0b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=59c957b688651a4c7fa4660ee7a404bd83e8bb0b

Author: Brian Paul <bri...@vmware.com>
Date:   Mon Jan 31 14:06:38 2011 -0700

glsl: add cast to silence signed/unsigned comparison warning

---

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

diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index b0f95dd..28d49ee 100644
--- a/src/glsl/ast_function.cpp
+++ b/src/glsl/ast_function.cpp
@@ -223,7 +223,7 @@ match_function_by_name(exec_list *instructions, const char 
*name,
 
       const char *prefix = "candidates are: ";
 
-      for (int i = -1; i < state->num_builtins_to_link; i++) {
+      for (int i = -1; i < (int) state->num_builtins_to_link; i++) {
         glsl_symbol_table *syms = i >= 0 ? state->builtins_to_link[i]->symbols
                                          : state->symbols;
         f = syms->get_function(name);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to