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" ); }