From 98af5054392b34eb390ca08d329547a9cfa24dcd Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 22 Jun 2016 17:37:20 -0700 Subject: [PATCH] Fix MSVC Level 4 warning MSVC does not like (uInt) = -(unsigned) (i.e. as an initializer), but it is fine with it if the conversion is explicitly invoked by a cast. Signed-off-by: John Bowler --- contrib/libtests/pngvalid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/libtests/pngvalid.c b/contrib/libtests/pngvalid.c index 7a42d1350..14be8ad98 100644 --- a/contrib/libtests/pngvalid.c +++ b/contrib/libtests/pngvalid.c @@ -1589,7 +1589,7 @@ store_read_chunk(png_store *ps, png_bytep pb, const png_size_t max, { if (chunkpos < chunklen-4U) { - uInt avail = -1; + uInt avail = (uInt)-1; if (avail > (IDAT_len-4U) - IDAT_pos) avail = (uInt)/*SAFE*/((IDAT_len-4U) - IDAT_pos);