gallium: Fix sign/unsign comparison.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 28 Feb 2008 02:23:01 +0000 (11:23 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 28 Feb 2008 04:06:52 +0000 (13:06 +0900)
src/gallium/auxiliary/tgsi/util/tgsi_scan.c

index b7bbff1689f996a7538caa3b5bdf1d9fa2f9b3a4..cf6de1e82f30ce177796820777e89f415614a956 100644 (file)
@@ -100,7 +100,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                /* only first 32 regs will appear in this bitfield */
                info->file_mask[file] |= (1 << i);
                info->file_count[file]++;
-               info->file_max[file] = MAX2(info->file_max[file], i);
+               info->file_max[file] = MAX2(info->file_max[file], (int)i);
 
                if (file == TGSI_FILE_INPUT) {
                   info->input_semantic_name[info->num_inputs]