Revert "[libpng16] Quieted about 100 warnings from clang-3.8 in pngtrans.c, pngread.c,"

This reverts commit 97dfccb632.
This commit is contained in:
Glenn Randers-Pehrson
2016-09-30 21:34:21 -05:00
parent 97dfccb632
commit b5b77a72b4
6 changed files with 21 additions and 24 deletions

View File

@@ -3228,10 +3228,10 @@ png_image_read_colormapped(png_voidp argument)
while (--passes >= 0)
{
png_uint_32 y = image->height + 1;
png_uint_32 y = image->height;
png_bytep row = png_voidcast(png_bytep, display->first_row);
while (y-- > 1)
while (y-- > 0)
{
png_read_row(png_ptr, row, NULL);
row += row_bytes;
@@ -4061,10 +4061,10 @@ png_image_read_direct(png_voidp argument)
while (--passes >= 0)
{
png_uint_32 y = image->height + 1;
png_uint_32 y = image->height;
png_bytep row = png_voidcast(png_bytep, display->first_row);
while (y-- > 1)
while (y-- > 0)
{
png_read_row(png_ptr, row, NULL);
row += row_bytes;