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 /pngwio.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 'pngwio.c')
-rw-r--r-- | pngwio.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,7 +30,7 @@ */ void /* PRIVATE */ -png_write_data(png_structrp png_ptr, png_const_bytep data, png_size_t length) +png_write_data(png_structrp png_ptr, png_const_bytep data, size_t length) { /* NOTE: write_data_fn must not change the buffer! */ if (png_ptr->write_data_fn != NULL ) @@ -48,9 +48,9 @@ png_write_data(png_structrp png_ptr, png_const_bytep data, png_size_t length) * than changing the library. */ void PNGCBAPI -png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length) +png_default_write_data(png_structp png_ptr, png_bytep data, size_t length) { - png_size_t check; + size_t check; if (png_ptr == NULL) return; |