summaryrefslogtreecommitdiff
path: root/pngwutil.c
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@acm.org>2016-06-22 17:35:49 -0700
committerJohn Bowler <jbowler@acm.org>2016-06-22 17:35:49 -0700
commit1df0ace0b4014152d10fe6772ecbf3cb2d014206 (patch)
tree96de2a1a25f518255ecdef847070ca72589d7fe1 /pngwutil.c
parent4af267c07b935dc1bfaf1889c63a29f8fa15025b (diff)
downloadlibpng-1df0ace0b4014152d10fe6772ecbf3cb2d014206.tar.gz
Fix MSVC Level 2 warning
MSVC doesn't like '-(unsigned)', so replace it by 0U-(unsigned) (in 1.6). Signed-off-by: John Bowler <jbowler@acm.org>
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 2e4d1a567..665464be1 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)