gallium/aux/tgsi/tgsi_dump.c: Fix -Wsign-compare warnings

tgsi_dump.c: In function 'iter_property':
tgsi_dump.c:443:18: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
    for (i = 0; i < prop->Property.NrTokens - 1; ++i) {
                  ^
tgsi_dump.c:459:13: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
       if (i < prop->Property.NrTokens - 2)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Gert Wollny 2018-06-05 13:58:46 +02:00 committed by Gert Wollny
parent 03ac9708cf
commit fc9e259e58

View file

@ -480,7 +480,7 @@ iter_property(
struct tgsi_iterate_context *iter,
struct tgsi_full_property *prop )
{
unsigned i;
int i;
struct dump_ctx *ctx = (struct dump_ctx *)iter;
TXT( "PROPERTY " );