std/bzip2: fix get_quirk(QUIRK_IGNORE_CHECKSUM)

This commit is contained in:
Nigel Tao committed 2023-11-19 19:25:39 +11:00
1 parent 82ea1985b4
commit dc269f3f54
2 files changed
+6

No files matched your search

+3
View File
@@ -31532,6 +31532,9 @@ wuffs_bzip2__decoder__get_quirk(
return 0;
}
if ((a_key == 1u) && self->private_impl.f_ignore_checksum) {
return 1u;
}
return 0u;
}
+3
View File
@@ -107,6 +107,9 @@ pub struct decoder? implements base.io_transformer(
)
pub func decoder.get_quirk(key: base.u32) base.u64 {
if (args.key == base.QUIRK_IGNORE_CHECKSUM) and this.ignore_checksum {
return 1
}
return 0
}