summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorCosmin Truta <ctruta@gmail.com>2018-06-17 22:37:44 -0400
committerCosmin Truta <ctruta@gmail.com>2018-06-17 22:37:44 -0400
commita74aa9a0028a8e746ec5646a3d3ee1c659f0af8a (patch)
treebd6c99d54c5e07c8c40448598210e2f8218ef13e /example.c
parent916117d97058b37e7eef2558a71919a8a073a3d3 (diff)
downloadlibpng-a74aa9a0028a8e746ec5646a3d3ee1c659f0af8a.tar.gz
[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 'example.c')
-rw-r--r--example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.c b/example.c
index 99d2f054a..94fe99d93 100644
--- a/example.c
+++ b/example.c
@@ -257,7 +257,7 @@ int check_if_png(char *file_name, FILE **fp)
/* Compare the first PNG_BYTES_TO_CHECK bytes of the signature.
Return nonzero (true) if they match */
- return(!png_sig_cmp(buf, (png_size_t)0, PNG_BYTES_TO_CHECK));
+ return(!png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK));
}
/* Read a PNG file. You may want to return an error code if the read