Change magic type to u32 (like in reference impl)
This commit is contained in:
parent
f19c0ee641
commit
62a659eb03
3 changed files with 6 additions and 5 deletions
|
|
@ -10,7 +10,7 @@ pub enum Error {
|
|||
EmptyImage { width: u32, height: u32 },
|
||||
BadEncodingDataSize { size: usize, expected: usize },
|
||||
BadDecodingDataSize { size: usize },
|
||||
InvalidMagic { magic: [u8; 4] },
|
||||
InvalidMagic { magic: u32 },
|
||||
// TODO: invalid colorspace
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue