mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Rename z variable to status, in Wuffs code
This commit is contained in:
1 parent
489fec4437
commit
ce96837b40
5 files changed
+41
-41
No files matched your search
@@ -35,7 +35,7 @@ pub func decoder.set_ignore_checksum!(ic base.bool) {
|
||||
pub func decoder.decode!??(dst base.io_writer, src base.io_reader) {
|
||||
var x base.u16
|
||||
var checksum_got base.u32
|
||||
var z base.status
|
||||
var status base.status
|
||||
var checksum_want base.u32
|
||||
|
||||
x = args.src.read_u16be!??()
|
||||
@@ -55,14 +55,14 @@ pub func decoder.decode!??(dst base.io_writer, src base.io_reader) {
|
||||
// Decode and checksum the DEFLATE-encoded payload.
|
||||
while true {
|
||||
args.dst.set_mark!()
|
||||
z =? this.flate.decode!??(dst:args.dst, src:args.src)
|
||||
status =? this.flate.decode!??(dst:args.dst, src:args.src)
|
||||
if not this.ignore_checksum {
|
||||
checksum_got = this.checksum.update!(x:args.dst.since_mark())
|
||||
}
|
||||
if z.is_ok() {
|
||||
if status.is_ok() {
|
||||
break
|
||||
}
|
||||
yield z
|
||||
yield status
|
||||
}
|
||||
checksum_want = args.src.read_u32be!??()
|
||||
if (not this.ignore_checksum) and (checksum_got != checksum_want) {
|
||||
|
||||
Reference in new issue
Block a user