Skip to content

Commit 582754c

Browse files
committed
Only produce unconsumed_tail when not end of block
1 parent 9f70900 commit 582754c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/isal/isal_zlib.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,8 @@ cdef class Decompress:
567567
# used anymore. Some unused data is in the bitbuffer and has to
568568
# be recovered.
569569
self.unused_data = self._view_bitbuffer() + new_data
570-
self.unconsumed_tail = new_data
570+
else:
571+
self.unconsumed_tail = new_data
571572

572573
def decompress(self, data, Py_ssize_t max_length = 0):
573574
"""

0 commit comments

Comments
 (0)