From: Gert Wollny Date: Tue, 5 Jun 2018 11:58:57 +0000 (+0200) Subject: gallium/aux/tgsi_build.c: Fix -Wsign-compare warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a3daaab413273f1a2bd5e74d6ff937ad0155ef0;p=mesa.git gallium/aux/tgsi_build.c: Fix -Wsign-compare warnings tgsi/tgsi_build.c: In function 'tgsi_build_full_immediate': tgsi/tgsi_build.c:622:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i = 0; i < full_imm->Immediate.NrTokens - 1; i++ ) { ^ tgsi/tgsi_build.c: In function 'tgsi_build_full_property': tgsi/tgsi_build.c:1393:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i = 0; i < full_prop->Property.NrTokens - 1; i++ ) { ^ Signed-off-by: Gert Wollny Reviewed-by: Emil Velikov --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c index 3f244231253..3db117ac3db 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_build.c +++ b/src/gallium/auxiliary/tgsi/tgsi_build.c @@ -607,7 +607,8 @@ tgsi_build_full_immediate( struct tgsi_header *header, unsigned maxsize ) { - unsigned size = 0, i; + unsigned size = 0; + int i; struct tgsi_immediate *immediate; if( maxsize <= size ) @@ -1362,7 +1363,8 @@ tgsi_build_full_property( struct tgsi_header *header, unsigned maxsize ) { - unsigned size = 0, i; + unsigned size = 0; + int i; struct tgsi_property *property; if( maxsize <= size )