From 1df55d36b27d37797ec4fca8911a06ec3dc2a9aa Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 30 May 2018 17:09:15 +0200 Subject: [PATCH] gallium/aux/tgsi/tgsi_scan.c: Fix warnings tgsi_scan.c:37:0: tgsi_scan.c: In function 'tgsi_scan_shader': tgsi_scan.c:212:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(src->Register.Index < Elements(info->is_msaa_sampler)); Reviewed-by: Erik Faye-Lund Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/gallium/auxiliary/tgsi/tgsi_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 40f3db8..df7adb1 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -209,7 +209,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens, /* MSAA samplers */ if (src->Register.File == TGSI_FILE_SAMPLER) { assert(fullinst->Instruction.Texture); - assert(src->Register.Index < Elements(info->is_msaa_sampler)); + assert((unsigned)src->Register.Index < Elements(info->is_msaa_sampler)); if (fullinst->Instruction.Texture && (fullinst->Texture.Texture == TGSI_TEXTURE_2D_MSAA ||