From 7a3daaab413273f1a2bd5e74d6ff937ad0155ef0 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 5 Jun 2018 13:58:57 +0200 Subject: [PATCH] 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 --- src/gallium/auxiliary/tgsi/tgsi_build.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ) -- 2.30.2