summaryrefslogtreecommitdiff
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-01-31 14:06:38 -0700
committerBrian Paul <brianp@vmware.com>2011-01-31 14:09:24 -0700
commit59c957b688651a4c7fa4660ee7a404bd83e8bb0b (patch)
tree2f144f81192ac16a32efa5eab71f7bcef8e9af03 /src/glsl
parent3ae7aa340305dbfa703abc9ec53ebad3ab6afa11 (diff)
glsl: add cast to silence signed/unsigned comparison warning
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ast_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index b0f95dd73b..28d49ee0da 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);