mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Fix a lzw_decoder bug.
This commit is contained in:
1 parent
f403d0faa8
commit
2fd08e0cf8
3 files changed
+2
-5
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user