From 22dadfccf0fef100a02e8a2e509094cff48f80c3 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 30 May 2018 15:20:40 +0200 Subject: [PATCH] gallium/aux/tgsi/tgsi_sanity.c: Fix warnings tgsi_sanity.c: In function 'iter_instruction': tgsi_sanity.c:316:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ctx->index_of_END != ~0) { ^~ tgsi_sanity.c: In function 'epilog': tgsi_sanity.c:488:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ctx->index_of_END == ~0) { Reviewed-by: Erik Faye-Lund Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/gallium/auxiliary/tgsi/tgsi_sanity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/tgsi_sanity.c index 90836f7..b44f458 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c +++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c @@ -313,7 +313,7 @@ iter_instruction( uint i; if (inst->Instruction.Opcode == TGSI_OPCODE_END) { - if (ctx->index_of_END != ~0) { + if (ctx->index_of_END != ~0u) { report_error( ctx, "Too many END instructions" ); } ctx->index_of_END = ctx->num_instructions; @@ -486,7 +486,7 @@ epilog( /* There must be an END instruction somewhere. */ - if (ctx->index_of_END == ~0) { + if (ctx->index_of_END == ~0u) { report_error( ctx, "Missing END instruction" ); }