[libpng16] Removed new unnecessary typecast in pngrutil.c

This commit is contained in:
Glenn Randers-Pehrson 2015-08-17 12:52:56 -05:00
parent 268c7bf68b
commit 15e69748f1

View File

@ -88,7 +88,7 @@ png_get_int_32)(png_const_bytep buf)
if ((uval & 0x80000000UL) == 0) /* non-negative */
return uval;
uval = (uval ^ (png_uint_32)0xffffffffUL) + 1; /* 2's complement: -x = ~x+1 */
uval = (uval ^ 0xffffffffU) + 1; /* 2's complement: -x = ~x+1 */
return -(png_int_32)uval;
}