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>
This commit is contained in:
parent
4af267c07b
commit
1df0ace0b4
@ -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
|
/* Overflow can occur in the calculation, just select the lowest set
|
||||||
* filter.
|
* filter.
|
||||||
*/
|
*/
|
||||||
filter_to_do &= -filter_to_do;
|
filter_to_do &= 0U-filter_to_do;
|
||||||
}
|
}
|
||||||
else if ((filter_to_do & PNG_FILTER_NONE) != 0 &&
|
else if ((filter_to_do & PNG_FILTER_NONE) != 0 &&
|
||||||
filter_to_do != PNG_FILTER_NONE)
|
filter_to_do != PNG_FILTER_NONE)
|
||||||
|
Loading…
Reference in New Issue
Block a user