[devel] Fix bracketing error just introduced in pngrutil.c macro definitions.

This commit is contained in:
Glenn Randers-Pehrson 2010-04-17 08:45:57 -05:00
parent 725314432d
commit 5eb5cce173

View File

@ -29,8 +29,8 @@ png_get_uint_31(png_structp png_ptr, png_bytep buf)
}
#ifndef PNG_USE_READ_MACROS
/* Grab an unsigned 32-bit integer from a buffer in big-endian format. */
png_uint_32 PNGAPI
png_get_uint_32(png_bytep buf)
png_uint_32 (PNGAPI
png_get_uint_32)(png_bytep buf)
{
png_uint_32 i =
((png_uint_32)(*(buf )) << 24) +
@ -45,8 +45,8 @@ png_get_uint_32(png_bytep buf)
* data is stored in the PNG file in two's complement format, and it is
* assumed that the machine format for signed integers is the same.
*/
png_int_32 PNGAPI
png_get_int_32(png_bytep buf)
png_int_32 (PNGAPI
png_get_int_32)(png_bytep buf)
{
png_int_32 i = ((png_int_32)(*buf) << 24) +
((png_int_32)(*(buf + 1)) << 16) +
@ -57,8 +57,8 @@ png_get_int_32(png_bytep buf)
}
/* Grab an unsigned 16-bit integer from a buffer in big-endian format. */
png_uint_16 PNGAPI
png_get_uint_16(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)));