diff options
author | Cosmin Truta <ctruta@gmail.com> | 2018-06-17 22:37:44 -0400 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2018-06-17 22:37:44 -0400 |
commit | a74aa9a0028a8e746ec5646a3d3ee1c659f0af8a (patch) | |
tree | bd6c99d54c5e07c8c40448598210e2f8218ef13e /pngwtran.c | |
parent | 916117d97058b37e7eef2558a71919a8a073a3d3 (diff) |
[libpng16] Replace the remaining uses of png_size_t with size_t
In v1.6.0, size_t became a required type. It should be used
consistently. To maintain backwards compatibility, png_size_t
is still maintained in deprecated form.
Diffstat (limited to 'pngwtran.c')
-rw-r--r-- | pngwtran.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pngwtran.c b/pngwtran.c index 377b43e5c..71963fdb2 100644 --- a/pngwtran.c +++ b/pngwtran.c @@ -212,9 +212,9 @@ png_do_shift(png_row_infop row_info, png_bytep row, if (row_info->bit_depth < 8) { png_bytep bp = row; - png_size_t i; + size_t i; unsigned int mask; - png_size_t row_bytes = row_info->rowbytes; + size_t row_bytes = row_info->rowbytes; if (bit_depth->gray == 1 && row_info->bit_depth == 2) mask = 0x55; @@ -514,7 +514,7 @@ png_do_write_transformations(png_structrp png_ptr, png_row_infop row_info) (png_ptr, /* png_ptr */ row_info, /* row_info: */ /* png_uint_32 width; width of row */ - /* png_size_t rowbytes; number of bytes in row */ + /* 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) */ |