[libpng16] Suppressed warnings from the Borland C++ 5.5.1/5.82 compiler in png.c
This commit is contained in:
parent
e1b505cd1d
commit
77becc566f
4
png.c
4
png.c
@ -2279,7 +2279,7 @@ png_compare_ICC_profile_with_sRGB(png_const_structrp png_ptr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Length *and* intent must match */
|
/* 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)
|
intent == (png_uint_32) png_sRGB_checks[i].intent)
|
||||||
{
|
{
|
||||||
/* Now calculate the adler32 if not done already. */
|
/* 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. */
|
/* Avoid overflow here on the minimum integer. */
|
||||||
if (fp < 0)
|
if (fp < 0)
|
||||||
*ascii++ = 45, --size, num = -fp;
|
*ascii++ = 45, num = -fp;
|
||||||
else
|
else
|
||||||
num = fp;
|
num = fp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user