lib/zlib/GzipOutputStream: use MAX_WBITS
This commit is contained in:

committed by
Max Kellermann

parent
a58275591d
commit
517c234461
@@ -13,7 +13,7 @@ GzipOutputStream::GzipOutputStream(OutputStream &_next)
|
|||||||
z.zfree = Z_NULL;
|
z.zfree = Z_NULL;
|
||||||
z.opaque = Z_NULL;
|
z.opaque = Z_NULL;
|
||||||
|
|
||||||
constexpr int windowBits = 15;
|
constexpr int windowBits = MAX_WBITS;
|
||||||
constexpr int gzip_encoding = 16;
|
constexpr int gzip_encoding = 16;
|
||||||
|
|
||||||
int result = deflateInit2(&z, Z_DEFAULT_COMPRESSION, Z_DEFLATED,
|
int result = deflateInit2(&z, Z_DEFAULT_COMPRESSION, Z_DEFLATED,
|
||||||
|
Reference in New Issue
Block a user