diff --git a/src/decoder/ifd.rs b/src/decoder/ifd.rs index 6cc2364..b0e2d1f 100644 --- a/src/decoder/ifd.rs +++ b/src/decoder/ifd.rs @@ -437,7 +437,7 @@ impl Entry { // 2b: the value is at most 4 bytes or doesn't fit in the offset field. return Ok(match self.type_ { Type::BYTE => Byte(self.offset[0]), - Type::SBYTE => Signed(i32::from(self.offset[0] as i8)), + Type::SBYTE => SignedByte(i8::from(self.offset[0] as i8)), Type::UNDEFINED => Byte(self.offset[0]), Type::SHORT => Unsigned(u32::from(self.r(bo).read_u16()?)), Type::SSHORT => Signed(i32::from(self.r(bo).read_i16()?)),