From: José Fonseca Date: Thu, 28 Feb 2008 02:23:01 +0000 (+0900) Subject: gallium: Fix sign/unsign comparison. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=510bc3535c4af68db71e5ffd19f3e21e10ec6004;p=mesa.git gallium: Fix sign/unsign comparison. --- diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_scan.c b/src/gallium/auxiliary/tgsi/util/tgsi_scan.c index b7bbff1689f..cf6de1e82f3 100644 --- a/src/gallium/auxiliary/tgsi/util/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/util/tgsi_scan.c @@ -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]