Let skip_u32_fast take non-constant arguments

This commit is contained in:
Nigel Tao committed 2020-07-15 14:10:43 +10:00
1 parent 4e193599ac
commit 31674f9bd2
5 files changed
+67 -24

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
yield? base."$short read"
continue.outer
}
args.src.skip_u32?(n: token_length)
args.src.skip_u32_fast!(actual: token_length, worst_case: token_length)
} else {
args.src.skip_u32_fast!(actual: 1, worst_case: 1)
}