mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng15] Constant changes for 64-bit compatibility (removal of L suffixes).
The 16-bit cases still use "L" as we don't have a 16-bit test system.
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
f0c19e6455
commit
751561218f
@@ -2217,7 +2217,7 @@ modifier_crc(png_bytep buffer)
|
||||
* the buffer, at the start.
|
||||
*/
|
||||
uInt datalen = png_get_uint_32(buffer);
|
||||
uLong crc = crc32(0L, buffer+4, datalen+4);
|
||||
uLong crc = crc32(0, buffer+4, datalen+4);
|
||||
/* The cast to png_uint_32 is safe because a crc32 is always a 32 bit value.
|
||||
*/
|
||||
png_save_uint_32(buffer+datalen+8, (png_uint_32)crc);
|
||||
|
||||
Reference in New Issue
Block a user