mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
lang: let skip_u32_fast imply can_undo_byte
This commit is contained in:
1 parent
723c604a5b
commit
bedf2bd7c3
3 files changed
+30
-21
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user