[libpng16] Eliminated unnecessary tests of boolean png_isaligned() vs 0.

This commit is contained in:
Glenn Randers-Pehrson 2016-07-15 17:22:10 -05:00
parent dd70604cec
commit 639b48625f
3 changed files with 4 additions and 2 deletions

View File

@ -88,6 +88,7 @@ Version 1.6.24beta05 [July 13, 2016]
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

View File

@ -5659,6 +5659,7 @@ Version 1.6.24beta05 [July 13, 2016]
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

View File

@ -3418,8 +3418,8 @@ png_combine_row(png_const_structrp png_ptr, png_bytep dp, int display)
/* 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)
{