diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2015-11-22 17:15:58 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-11-25 16:12:40 +0100 |
commit | 8f6c80710fac345c057680d52a1200972d478980 (patch) | |
tree | 1d73a2d0df0a7bd7b975ba4d20b3c0ada23c2145 /uncompr.c | |
parent | 962354736fea674b62949a0d2a85023c1f2c57ce (diff) |
Type cleanup.
Diffstat (limited to 'uncompr.c')
-rw-r--r-- | uncompr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |