X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compress.c;h=e2db404abf888bd2c85844985b5ae9784b955c63;hb=a5773513942b1c57d0eff51fcb2ebac72796ed95;hp=85a96df1cbe1fa610bcdce4ca8c6cd7adea95d67;hpb=f898bbed8991fb2220940d19d70803cc68697b60;p=zlib.git diff --git a/compress.c b/compress.c index 85a96df..e2db404 100644 --- a/compress.c +++ b/compress.c @@ -1,5 +1,5 @@ /* compress.c -- compress a memory buffer - * Copyright (C) 1995-2005, 2014 Jean-loup Gailly, Mark Adler + * Copyright (C) 1995-2005, 2014, 2016 Jean-loup Gailly, Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -28,7 +28,7 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) { z_stream stream; int err; - const uInt max = -1; + const uInt max = (uInt)-1; uLong left; left = *destLen;