From 52c9e4fdd63aa134b7a51b51b98b1933d86a476c Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 9 May 2016 16:36:15 -0700 Subject: [PATCH] signed/unsigned warning fix (GCC 4.8.5) Signed-off-by: John Bowler --- pngwutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngwutil.c b/pngwutil.c index 9f829918e..603e67da2 100644 --- a/pngwutil.c +++ b/pngwutil.c @@ -3704,7 +3704,7 @@ png_write_start_IDAT(png_structrp png_ptr) { # ifdef PNG_SELECT_FILTER_SUPPORTED /* The result depends on the png compression level: */ - const int png_level = pz_value(png_level, ps->pz_IDAT); + const unsigned int png_level = pz_value(png_level, ps->pz_IDAT); /* If the bit depth is less than 8, so pixels are not byte aligned, * PNG filtering hardly ever helps because there is no correlation