Skip to content

Commit 54db79e

Browse files
committed
Place colon for correct zdict using the last 32k bytes
1 parent c7d0a01 commit 54db79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isal/igzip_threaded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def write(self, b) -> int:
177177
raise IOError("Can not write closed file")
178178
index = self.index
179179
data = bytes(b)
180-
zdict = memoryview(self.previous_block)[:-DEFLATE_WINDOW_SIZE]
180+
zdict = memoryview(self.previous_block)[-DEFLATE_WINDOW_SIZE:]
181181
self.previous_block = data
182182
self.index += 1
183183
worker_index = index % self.threads

0 commit comments

Comments
 (0)