lang: let skip_u32_fast imply can_undo_byte

This commit is contained in:
Nigel Tao committed 2023-06-20 23:02:01 +10:00
1 parent 723c604a5b
commit bedf2bd7c3
3 files changed
+30 -21

No files matched your search

+2 -6
View File
@@ -1503,15 +1503,11 @@ pri func decoder.fill_bitstream!(src: base.io_reader) {
continue
} else if args.src.length() <= 0 {
if args.src.can_undo_byte() {
args.src.undo_byte!()
}
args.src.undo_byte!()
break
} else if args.src.peek_u8() > 0 {
if args.src.can_undo_byte() {
args.src.undo_byte!()
}
args.src.undo_byte!()
break
} else {