summaryrefslogtreecommitdiff
path: root/pngwutil.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-06-23 11:18:32 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-06-23 11:26:59 -0500
commit3f2879bf60397a9fdfd6b80d073a9d21b88fac1e (patch)
tree70f5bd6b385f4545e265480458e5c0cc02a8a809 /pngwutil.c
parentee1e535298ca78a8e7407e25044d7ddf563273e4 (diff)
downloadlibpng-3f2879bf60397a9fdfd6b80d073a9d21b88fac1e.tar.gz
[libpng16] Imported from libpng-1.6.24beta02.tar
Diffstat (limited to 'pngwutil.c')
-rw-r--r--pngwutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pngwutil.c b/pngwutil.c
index c1751fe5a..ddac9bfba 100644
--- a/pngwutil.c
+++ b/pngwutil.c
@@ -2448,7 +2448,7 @@ png_write_find_filter(png_structrp png_ptr, png_row_infop row_info)
/* Overflow can occur in the calculation, just select the lowest set
* filter.
*/
- filter_to_do &= -filter_to_do;
+ filter_to_do &= 0U-filter_to_do;
}
else if ((filter_to_do & PNG_FILTER_NONE) != 0 &&
filter_to_do != PNG_FILTER_NONE)