summaryrefslogtreecommitdiff
path: root/uncompr.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2015-11-21 16:53:40 +0200
committerMika Lindqvist <postmaster@raasu.org>2015-12-14 11:00:31 +0200
commit63523d388d4ce0b38f0ee8c059240ed1a3be1f76 (patch)
treeb7188a510a8e322e77fcb17728ff7bcc0ce46ce7 /uncompr.c
parent9c3a28087793a922367f1f5d6a8ffea9a9b14fd5 (diff)
Use size_t for total_in and total_out.
Diffstat (limited to 'uncompr.c')
-rw-r--r--uncompr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uncompr.c b/uncompr.c
index a195cdc..c2af140 100644
--- a/uncompr.c
+++ b/uncompr.c
@@ -22,11 +22,11 @@
buffer, or Z_DATA_ERROR if the input data was corrupted, including if the
input data is an incomplete zlib stream.
*/
-int ZEXPORT uncompress(unsigned char *dest, unsigned long *destLen, const unsigned char *source, unsigned long sourceLen) {
+int ZEXPORT uncompress(unsigned char *dest, size_t *destLen, const unsigned char *source, size_t sourceLen) {
z_stream stream;
int err;
const unsigned int max = (unsigned int)0 - 1;
- unsigned long left;
+ size_t left;
unsigned char buf[1]; /* for detection of incomplete stream when *destLen == 0 */
if (*destLen) {