summaryrefslogtreecommitdiff
path: root/pngrutil.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-07-31 07:09:58 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-07-31 07:09:58 -0500
commit48dc6ebf5cfeca26aabd3dfd08605bceae3ea14c (patch)
tree95d7c0b35ac7e3eb681d32327f64eef6485c6dba /pngrutil.c
parent4009a76e9724e2ef936add6d3d7c05ca4d143500 (diff)
downloadlibpng-48dc6ebf5cfeca26aabd3dfd08605bceae3ea14c.tar.gz
[devel] Revised png_get_int_16() to be similar to png_get_int_32().
Diffstat (limited to 'pngrutil.c')
-rw-r--r--pngrutil.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pngrutil.c b/pngrutil.c
index c0da7e12b..c910751a6 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -88,8 +88,9 @@ png_get_int_32)(png_bytep buf)
png_uint_16 (PNGAPI
png_get_uint_16)(png_bytep buf)
{
- png_uint_16 i = (png_uint_16)(((png_uint_16)(*buf) << 8) +
- (png_uint_16)(*(buf + 1)));
+ png_uint_16 i =
+ ((png_uint_32)(*buf) << 8) +
+ ((png_uint_32)(*(buf + 1)));
return (i);
}