[libpng16] Use uLong 64 bits for crc32 return in profile check

This commit is contained in:
John Bowler 2012-03-21 23:52:41 -05:00 committed by Glenn Randers-Pehrson
parent 8fbd60ded2
commit f7677a348e

View File

@ -1501,7 +1501,7 @@ png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
{ {
if (profile_length == check_len[icheck]) if (profile_length == check_len[icheck])
{ {
png_uint_32 profile_crc = crc32(0, uLong profile_crc = crc32(0,
profile, profile_length); profile, profile_length);
if (profile_crc == if (profile_crc ==