Use canonical parity check in WAV iXML fixture

This commit is contained in:
Dylan M. Taylor committed 2026-11-14 23:02:09 -05:00
1 parent 44802bd54d
commit c4fb292825
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ fn chunk(id: &[u8; 4], body: &[u8]) -> Vec<u8> {
let mut out = id.to_vec();
out.extend_from_slice(&(body.len() as u32).to_le_bytes());
out.extend_from_slice(body);
if body.len() % 2 != 0 {
if !body.len().is_multiple_of(2) {
out.push(0);
}
out