From 1df0ace0b4014152d10fe6772ecbf3cb2d014206 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 22 Jun 2016 17:35:49 -0700 Subject: [PATCH] Fix MSVC Level 2 warning MSVC doesn't like '-(unsigned)', so replace it by 0U-(unsigned) (in 1.6). Signed-off-by: John Bowler --- pngwutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)