mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
test: use the current TIFF fixture alignment idiom
This commit is contained in:
1 parent
faed6b4fb5
commit
c3f61de9d4
1 file changed
+1
-1
@@ -497,7 +497,7 @@ fn tiff_with_separate_mask() -> Vec<u8> {
|
||||
assert_eq!(&bytes[..2], b"II");
|
||||
let first = u32::from_le_bytes(bytes[4..8].try_into().unwrap()) as usize;
|
||||
let count = u16::from_le_bytes(bytes[first..first + 2].try_into().unwrap()) as usize;
|
||||
if bytes.len() % 2 != 0 {
|
||||
if !bytes.len().is_multiple_of(2) {
|
||||
bytes.push(0);
|
||||
}
|
||||
let mask = bytes.len() as u32;
|
||||
|
||||
Reference in new issue
Block a user