summaryrefslogtreecommitdiff
path: root/contrib/libtests/pngimage.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-07-22 22:36:43 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-07-22 22:41:05 -0500
commit287fb8924819dd3b3a8c6cbc0e172972e5654da5 (patch)
tree743964e884b9a4ae06265030bfb08ad4758d8b5a /contrib/libtests/pngimage.c
parent2b667e49232dd36aa7ea3a7382f265fd7f97d2cd (diff)
downloadlibpng-287fb8924819dd3b3a8c6cbc0e172972e5654da5.tar.gz
[master] Imported from libpng-1.6.18.tarv1.6.18-masterlibpng-1.6.18-master-signed
Diffstat (limited to 'contrib/libtests/pngimage.c')
-rw-r--r--contrib/libtests/pngimage.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libtests/pngimage.c b/contrib/libtests/pngimage.c
index dccfbce12..180cf0a16 100644
--- a/contrib/libtests/pngimage.c
+++ b/contrib/libtests/pngimage.c
@@ -1,8 +1,8 @@
/* pngimage.c
*
- * Copyright (c) 2014 John Cunningham Bowler
+ * Copyright (c) 2015 John Cunningham Bowler
*
- * Last changed in libpng 1.6.10 [March 6, 2014]
+ * Last changed in libpng 1.6.18 [July 23, 2015]
*
* This code is released under the libpng license.
* For conditions of distribution and use, see the disclaimer
@@ -1120,8 +1120,8 @@ compare_read(struct display *dp, int applied_transforms)
{
int b;
- case 16: /* Two bytes per component, bit-endian */
- for (b = (bpp >> 4); b > 0; )
+ case 16: /* Two bytes per component, big-endian */
+ for (b = (bpp >> 4); b > 0; --b)
{
unsigned int sig = (unsigned int)(0xffff0000 >> sig_bits[b]);