[libpng16] Eliminated unnecessary tests of boolean png_isaligned() vs 0.
diff --git a/ANNOUNCE b/ANNOUNCE
index ea4e839..0d09b99 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -88,6 +88,7 @@
Version 1.6.24beta06 [July 15, 2016]
Fixed more indentation to comply with our coding style.
+ Eliminated unnecessary tests of boolean png_isaligned() vs 0.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
diff --git a/CHANGES b/CHANGES
index 09b5efa..0f68bda 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5659,6 +5659,7 @@
Version 1.6.24beta06 [July 15, 2016]
Fixed more indentation to comply with our coding style.
+ Eliminated unnecessary tests of boolean png_isaligned() vs 0.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
diff --git a/pngrutil.c b/pngrutil.c
index ad3e101..342da3f 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -3418,8 +3418,8 @@
/* Everything is aligned for png_uint_16 copies, but try for
* png_uint_32 first.
*/
- if (png_isaligned(dp, png_uint_32) != 0 &&
- png_isaligned(sp, png_uint_32) != 0 &&
+ if (png_isaligned(dp, png_uint_32) &&
+ png_isaligned(sp, png_uint_32) &&
bytes_to_copy % (sizeof (png_uint_32)) == 0 &&
bytes_to_jump % (sizeof (png_uint_32)) == 0)
{