aboutsummaryrefslogtreecommitdiff
path: root/compress.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:25:27 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:25:27 -0700
commitb1c19ca6d82c98a8be6cd9cad7a9c5fa5e8e634e (patch)
treef0eeb8f52d07819f417411da5104c9d743dd46de /compress.c
parentabf180a067223611620dd97dd5681df7c7fa7c9b (diff)
downloadzlib-b1c19ca6d82c98a8be6cd9cad7a9c5fa5e8e634e.tar.gz
zlib-b1c19ca6d82c98a8be6cd9cad7a9c5fa5e8e634e.tar.bz2
zlib-b1c19ca6d82c98a8be6cd9cad7a9c5fa5e8e634e.zip
zlib 1.2.3.1v1.2.3.1
Diffstat (limited to 'compress.c')
-rw-r--r--compress.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/compress.c b/compress.c
index df04f01..ea4dfbe 100644
--- a/compress.c
+++ b/compress.c
@@ -1,5 +1,5 @@
1/* compress.c -- compress a memory buffer 1/* compress.c -- compress a memory buffer
2 * Copyright (C) 1995-2003 Jean-loup Gailly. 2 * Copyright (C) 1995-2005 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
@@ -75,5 +75,6 @@ int ZEXPORT compress (dest, destLen, source, sourceLen)
75uLong ZEXPORT compressBound (sourceLen) 75uLong ZEXPORT compressBound (sourceLen)
76 uLong sourceLen; 76 uLong sourceLen;
77{ 77{
78 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; 78 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
79 (sourceLen >> 25) + 13;
79} 80}