mesa: cast to fix warning
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Jul 2008 23:37:55 +0000 (17:37 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Jul 2008 23:37:55 +0000 (17:37 -0600)
src/mesa/shader/slang/slang_codegen.c

index 705d496e2401f98af4584793098ac73ae5b1654a..ad9cf06e2751a1242ca9ffcca4b74823b5b1ab13 100644 (file)
@@ -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;
       }