[devel] Fixed 64-bit builds where png_uint_32 is smaller than png_size_t

This commit is contained in:
John Bowler 2011-04-15 06:54:30 -05:00 committed by Glenn Randers-Pehrson
parent 7abc130a81
commit 8d4ce1fed5

View File

@ -466,7 +466,7 @@ png_write_compressed_data_out(png_structp png_ptr, compression_state *comp)
{
unsigned int z_cinfo;
unsigned int half_z_window_size;
png_uint_32 uncompressed_idat_size = comp->input_len;
png_size_t uncompressed_idat_size = comp->input_len;
z_cinfo = z_cmf >> 4;
half_z_window_size = 1 << (z_cinfo + 7);