std/lzw: change set_literal_width to set_quirk

This commit is contained in:
Nigel Tao committed 2023-04-15 09:59:40 +10:00
1 parent 6e84987d33
commit d8c23a3a66
7 files changed
+83 -62

No files matched your search

+1 -1
View File
@@ -899,7 +899,7 @@ pri func decoder.decode_id_part1?(dst: ptr base.pixel_buffer, src: base.io_reade
if lw > 8 {
return "#bad literal width"
}
this.lzw.set_literal_width!(lw: lw as base.u32)
this.lzw.set_quirk!(key: lzw.QUIRK_LITERAL_WIDTH_PLUS_ONE, value: (1 + lw) as base.u64)
this.previous_lzw_decode_ended_abruptly = true
}