mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
Use canonical parity check in WAV iXML fixture
This commit is contained in:
1 parent
44802bd54d
commit
c4fb292825
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user