From: Brian Paul Date: Tue, 29 Jul 2008 23:37:55 +0000 (-0600) Subject: mesa: cast to fix warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b26a80aa12f1f8316da495b4fdeb94e75ba5d740;p=mesa.git mesa: cast to fix warning --- 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; }