Fix a lzw_decoder bug.

This commit is contained in:
Nigel Tao committed 2017-06-10 18:08:16 +10:00
1 parent f403d0faa8
commit 2fd08e0cf8
3 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -94,7 +94,7 @@ pub func lzw_decoder.decode?(dst ptr buf1, src ptr buf1, src_final bool)() {
in.dst.write?(x:s)
if use_save_code {
this.suffixes[save_code] = this.stack[4095]
this.suffixes[save_code] = c as u8
this.prefixes[save_code] = prev_code as u16
}