summaryrefslogtreecommitdiff
path: root/uncompr.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2015-11-22 17:15:58 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-11-25 16:12:40 +0100
commit8f6c80710fac345c057680d52a1200972d478980 (patch)
tree1d73a2d0df0a7bd7b975ba4d20b3c0ada23c2145 /uncompr.c
parent962354736fea674b62949a0d2a85023c1f2c57ce (diff)
Type cleanup.
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 9799eb9..9bfb1e1 100644
--- a/uncompr.c
+++ b/uncompr.c
@@ -52,11 +52,11 @@ int ZEXPORT uncompress(unsigned char *dest, uLong *destLen, const unsigned char
do {
if (stream.avail_out == 0) {
- stream.avail_out = left > (uLong)max ? max : (uInt)left;
+ stream.avail_out = left > (unsigned long)max ? max : (unsigned int)left;
left -= stream.avail_out;
}
if (stream.avail_in == 0) {
- stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
+ stream.avail_in = sourceLen > (unsigned long)max ? max : (unsigned int)sourceLen;
sourceLen -= stream.avail_in;
}
err = inflate(&stream, Z_NO_FLUSH);