summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-29 17:37:55 -0600
committerBrian Paul <[email protected]>2008-07-29 17:37:55 -0600
commitb26a80aa12f1f8316da495b4fdeb94e75ba5d740 (patch)
tree8c59ef316595131edb8474309cfc37a4baefea05
parenta7dd701421082dbe6637f6b80a0707f14f69e007 (diff)
mesa: cast to fix warning
-rw-r--r--src/mesa/shader/slang/slang_codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 705d496e240..ad9cf06e275 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -2973,7 +2973,7 @@ _slang_gen_array_element(slang_assemble_ctx * A, slang_operation *oper)
index = (GLint) oper->children[1].literal[0];
if (oper->children[1].type != SLANG_OPER_LITERAL_INT ||
- index >= max) {
+ index >= (GLint) max) {
slang_info_log_error(A->log, "Invalid array index for vector type");
return NULL;
}