summaryrefslogtreecommitdiff
path: root/pngread.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-09-30 21:34:21 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-09-30 21:34:21 -0500
commitb5b77a72b468d7477eea5c6ee9198f55df51ff04 (patch)
treed34fb27bb6a5c00b550bd8fa0d73aadaa6e19ed0 /pngread.c
parent97dfccb6325e54d45c4440b6dd037619d88688cc (diff)
downloadlibpng-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pngread.c b/pngread.c
index e30aff7c9..a5374e5b8 100644
--- a/pngread.c
+++ b/pngread.c
@@ -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;