From 77becc566ffd3192d217b7c6b2792b7a8355ddc3 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Wed, 29 Jul 2015 08:01:12 -0500 Subject: [PATCH] [libpng16] Suppressed warnings from the Borland C++ 5.5.1/5.82 compiler in png.c --- png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/png.c b/png.c index e2e61a33f..410eeb164 100644 --- a/png.c +++ b/png.c @@ -2279,7 +2279,7 @@ png_compare_ICC_profile_with_sRGB(png_const_structrp png_ptr, } /* Length *and* intent must match */ - if (length == png_sRGB_checks[i].length && + if (length == (png_uint_32) png_sRGB_checks[i].length && intent == (png_uint_32) png_sRGB_checks[i].intent) { /* Now calculate the adler32 if not done already. */ @@ -3147,7 +3147,7 @@ png_ascii_from_fixed(png_const_structrp png_ptr, png_charp ascii, /* Avoid overflow here on the minimum integer. */ if (fp < 0) - *ascii++ = 45, --size, num = -fp; + *ascii++ = 45, num = -fp; else num = fp;