mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Added typecasts in png_get_int_32() in png.h to avoid compiler warning.
This commit is contained in:
4
png.h
4
png.h
@@ -2023,8 +2023,8 @@ PNG_EXPORT(png_bytep,png_get_io_chunk_name,(png_structp png_ptr),,200);
|
||||
((png_uint_32)(*((buf) + 1))))
|
||||
# define png_get_int_32(buf) \
|
||||
((png_int_32)((*(buf) & 0x80) \
|
||||
? -((png_get_uint_32(buf) ^ 0xffffffff)+1) \
|
||||
: png_get_uint_32(buf)))
|
||||
? -((png_int_32)((png_get_uint_32(buf) ^ 0xffffffff)+1)) \
|
||||
: (png_int_32)png_get_uint_32(buf)))
|
||||
#endif
|
||||
|
||||
#ifdef PNG_READ_INT_FUNCTIONS_SUPPORTED
|
||||
|
||||
Reference in New Issue
Block a user