diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-09-30 21:34:21 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-09-30 21:34:21 -0500 |
commit | b5b77a72b468d7477eea5c6ee9198f55df51ff04 (patch) | |
tree | d34fb27bb6a5c00b550bd8fa0d73aadaa6e19ed0 /pngread.c | |
parent | 97dfccb6325e54d45c4440b6dd037619d88688cc (diff) | |
download | libpng-b5b77a72b468d7477eea5c6ee9198f55df51ff04.tar.gz |
Revert "[libpng16] Quieted about 100 warnings from clang-3.8 in pngtrans.c, pngread.c,"
This reverts commit 97dfccb6325e54d45c4440b6dd037619d88688cc.
Diffstat (limited to 'pngread.c')
-rw-r--r-- | pngread.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |