signed/unsigned warning fix (GCC 4.8.5)

Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
John Bowler 2016-05-09 16:36:15 -07:00
parent 4905ed4aae
commit 52c9e4fdd6

View File

@ -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