diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2010-07-30 20:03:17 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2010-07-30 20:03:17 (GMT) |
commit | ce126edfd0df77da41b961f85d82d94c450c61f1 (patch) | |
tree | 10f6b5021ff273b85aa70f05e9cd1e450944dea5 /Modules/zlib/compress.c | |
parent | d496c4c9360b481ca68b68b6bba6b6687136e442 (diff) | |
download | cpython-ce126edfd0df77da41b961f85d82d94c450c61f1.zip cpython-ce126edfd0df77da41b961f85d82d94c450c61f1.tar.gz cpython-ce126edfd0df77da41b961f85d82d94c450c61f1.tar.bz2 |
Import files from zlib 1.2.5.
Diffstat (limited to 'Modules/zlib/compress.c')
-rw-r--r-- | Modules/zlib/compress.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/zlib/compress.c b/Modules/zlib/compress.c index df04f01..ea4dfbe 100644 --- a/Modules/zlib/compress.c +++ b/Modules/zlib/compress.c @@ -1,5 +1,5 @@ /* compress.c -- compress a memory buffer - * Copyright (C) 1995-2003 Jean-loup Gailly. + * Copyright (C) 1995-2005 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -75,5 +75,6 @@ int ZEXPORT compress (dest, destLen, source, sourceLen) uLong ZEXPORT compressBound (sourceLen) uLong sourceLen; { - return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; + return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + + (sourceLen >> 25) + 13; } |