diff options
author | Brian Paul <[email protected]> | 2008-07-29 17:37:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-07-29 17:37:55 -0600 |
commit | b26a80aa12f1f8316da495b4fdeb94e75ba5d740 (patch) | |
tree | 8c59ef316595131edb8474309cfc37a4baefea05 /src/mesa/shader | |
parent | a7dd701421082dbe6637f6b80a0707f14f69e007 (diff) |
mesa: cast to fix warning
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 2 |
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; } |