We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b87875 commit 0277458Copy full SHA for 0277458
src/isal/isal_zlib.pyx
@@ -566,7 +566,8 @@ cdef class Decompress:
566
# we assume the bitbuffer data is already added.
567
self.unused_data = self._view_bitbuffer()
568
self.unused_data += new_data
569
- self.unconsumed_tail = b"" # When there is unused_data unconsumed tail should be b""
+ if self.unconsumed_tail:
570
+ self.unconsumed_tail = b"" # When there is unused_data unconsumed tail should be b""
571
elif self.stream.avail_in > 0 or self.unconsumed_tail:
572
left_size = <unsigned char*>data.buf + data.len - self.stream.next_in
573
new_data = PyBytes_FromStringAndSize(<char *>self.stream.next_in, left_size)
0 commit comments