mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
std/bzip2: fix get_quirk(QUIRK_IGNORE_CHECKSUM)
This commit is contained in:
1 parent
82ea1985b4
commit
dc269f3f54
2 files changed
+6
No files matched your search
@@ -31532,6 +31532,9 @@ wuffs_bzip2__decoder__get_quirk(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((a_key == 1u) && self->private_impl.f_ignore_checksum) {
|
||||||
|
return 1u;
|
||||||
|
}
|
||||||
return 0u;
|
return 0u;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,9 @@ pub struct decoder? implements base.io_transformer(
|
|||||||
)
|
)
|
||||||
|
|
||||||
pub func decoder.get_quirk(key: base.u32) base.u64 {
|
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
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user