Drop args- and this-related facts after ? call

This commit is contained in:
Nigel Tao committed 2020-11-05 14:49:47 +11:00
1 parent b3cc3c53ad
commit 2dfe222681
3 files changed
+19 -12

No files matched your search

+2 -2
View File
@@ -228,8 +228,8 @@ pri func decoder.decode_blocks?(dst: base.io_writer, src: base.io_reader) {
post this.n_bits >= 3,
{
b0 = args.src.read_u8_as_u32?()
this.bits |= b0 << this.n_bits
this.n_bits += 8
this.bits |= b0 << (this.n_bits & 3)
this.n_bits = (this.n_bits & 3) + 8
} endwhile
final = this.bits & 0x01
type = (this.bits >> 1) & 0x03