Rename z variable to status, in Wuffs code

This commit is contained in:
Nigel Tao committed 2018-12-28 15:52:34 +11:00
1 parent 489fec4437
commit ce96837b40
5 files changed
+41 -41

No files matched your search

+4 -4
View File
@@ -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) {