diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-09-10 22:05:27 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-09-10 22:05:27 -0500 |
commit | bcb3aac3c5c517aed6ec88253e717210318423cc (patch) | |
tree | a4ababe5a4629a616c86157d4c4a741cfcd3d64c /pngwtran.c | |
parent | 9a5c1c180fa2f6fa76bb7940c05a657e0af64dbc (diff) | |
download | libpng-bcb3aac3c5c517aed6ec88253e717210318423cc.tar.gz |
[devel] Fixed a number of problems with 64-bit compilation reported by Visual
Studio 2010 (John Bowler).
Diffstat (limited to 'pngwtran.c')
-rw-r--r-- | pngwtran.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pngwtran.c b/pngwtran.c index df7ba93e3..f4b4898e9 100644 --- a/pngwtran.c +++ b/pngwtran.c @@ -1,7 +1,7 @@ /* pngwtran.c - transforms the data in a row for PNG writers * - * Last changed in libpng 1.5.0 [August 28, 2010] + * Last changed in libpng 1.5.0 [September 11, 2010] * Copyright (c) 1998-2010 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) @@ -34,7 +34,7 @@ png_do_write_transformations(png_structp png_ptr) (png_ptr, /* png_ptr */ &(png_ptr->row_info), /* row_info: */ /* png_uint_32 width; width of row */ - /* png_uint_32 rowbytes; number of bytes in row */ + /* png_size_t rowbytes; number of bytes in row */ /* png_byte color_type; color type of pixels */ /* png_byte bit_depth; bit depth of samples */ /* png_byte channels; number of channels (1-4) */ @@ -279,9 +279,9 @@ png_do_shift(png_row_infop row_info, png_bytep row, if (row_info->bit_depth < 8) { png_bytep bp = row; - png_uint_32 i; + png_size_t i; png_byte mask; - png_uint_32 row_bytes = row_info->rowbytes; + png_size_t row_bytes = row_info->rowbytes; if (bit_depth->gray == 1 && row_info->bit_depth == 2) mask = 0x55; |