Skip to content

Commit 300ef6b

Browse files
committed
Only supports wbits=0 for decompression
1 parent 466deaf commit 300ef6b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/isal/isal_zlib.pyx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,7 @@ cdef class Decompress:
521521
cdef wbits_to_flag_and_hist_bits_deflate(int wbits,
522522
unsigned short * hist_bits,
523523
unsigned short * gzip_flag):
524-
if wbits == 0:
525-
hist_bits[0] = 0
526-
gzip_flag[0] = IGZIP_ZLIB
527-
elif 9 <= wbits <= 15: # zlib headers and trailers on compressed stream
524+
if 9 <= wbits <= 15: # zlib headers and trailers on compressed stream
528525
hist_bits[0] = wbits
529526
gzip_flag[0] = IGZIP_ZLIB
530527
elif 25 <= wbits <= 31: # gzip headers and trailers on compressed stream

0 commit comments

Comments
 (0)