mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Tweak the decode_huffman_fast loop condition.
This commit is contained in:
1 parent
8fafcbcb31
commit
1c7a6792de
3 files changed
+18
-5
No files matched your search
@@ -26,7 +26,7 @@ pri func flate_decoder.decode_huffman_fast?(dst writer1, src reader1)() {
|
||||
var lmask u32[..511] = ((1 as u32) << this.n_huffs_bits[0]) - 1
|
||||
var dmask u32[..511] = ((1 as u32) << this.n_huffs_bits[1]) - 1
|
||||
|
||||
while:loop in.dst.available() > 999999999 { // TODO: change 999999999 to the real condition.
|
||||
while:loop in.src.available() >= 6 {
|
||||
// Decode an lcode symbol from H-L.
|
||||
while true {
|
||||
table_entry = this.huffs[0][bits & lmask]
|
||||
|
||||
Reference in new issue
Block a user