From 9cf987c32845385adf598361d9ac2cfa726728de Mon Sep 17 00:00:00 2001 From: Alcaro Date: Mon, 2 Jan 2017 02:18:54 +0100 Subject: [PATCH] warning: comparison between signed and unsigned integer expressions --- libretro-common/formats/tga/rtga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretro-common/formats/tga/rtga.c b/libretro-common/formats/tga/rtga.c index e209e4a2d2..b684aa0ae1 100644 --- a/libretro-common/formats/tga/rtga.c +++ b/libretro-common/formats/tga/rtga.c @@ -237,7 +237,7 @@ static uint8_t *rtga__tga_load(rtga__context *s, if ( !tga_indexed && !tga_is_RLE) { - unsigned i; + int i; for (i=0; i < tga_height; ++i) { int y = tga_inverted ? tga_height -i - 1 : i; @@ -247,7 +247,7 @@ static uint8_t *rtga__tga_load(rtga__context *s, } else { - unsigned i, j; + int i, j; int RLE_repeating = 0; int RLE_count = 0; int read_next_pixel = 1; @@ -356,7 +356,7 @@ static uint8_t *rtga__tga_load(rtga__context *s, /* swap RGB */ if (tga_comp >= 3) { - unsigned i; + int i; unsigned char* tga_pixel = tga_data; for (i = 0; i < tga_width * tga_height; ++i)