summaryrefslogtreecommitdiff
path: root/pngrutil.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-08-17 12:52:56 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-08-17 12:52:56 -0500
commit15e69748f11d4948798f11bb00df9ff7626fde85 (patch)
tree008cfc3a4ef3e4b46b2df7ae11dfa84f250d4d52 /pngrutil.c
parent268c7bf68b3908fcad4496543b07e88d1b49a7cb (diff)
downloadlibpng-15e69748f11d4948798f11bb00df9ff7626fde85.tar.gz
[libpng16] Removed new unnecessary typecast in pngrutil.c
Diffstat (limited to 'pngrutil.c')
-rw-r--r--pngrutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pngrutil.c b/pngrutil.c
index 2f236c127..68be1b357 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -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;
}