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 /pngrio.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 'pngrio.c')
-rw-r--r-- | pngrio.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -29,7 +29,7 @@ * to read more than 64K on a 16-bit machine. */ void /* PRIVATE */ -png_read_data(png_structrp png_ptr, png_bytep data, png_size_t length) +png_read_data(png_structrp png_ptr, png_bytep data, size_t length) { png_debug1(4, "reading %d bytes", (int)length); @@ -47,14 +47,14 @@ png_read_data(png_structrp png_ptr, png_bytep data, png_size_t length) * than changing the library. */ void PNGCBAPI -png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length) +png_default_read_data(png_structp png_ptr, png_bytep data, size_t length) { - png_size_t check; + size_t check; if (png_ptr == NULL) return; - /* fread() returns 0 on error, so it is OK to store this in a png_size_t + /* fread() returns 0 on error, so it is OK to store this in a size_t * instead of an int, which is what fread() actually returns. */ check = fread(data, 1, length, png_voidcast(png_FILE_p, png_ptr->io_ptr)); |