diff --git a/src/write.rs b/src/write.rs index 6e2af4c9..64a1f352 100644 --- a/src/write.rs +++ b/src/write.rs @@ -150,7 +150,7 @@ impl arbitrary::Arbitrary<'_> for FileOptions { encrypt_with: Option::::arbitrary(u)?, extra_data: Vec::with_capacity(u16::MAX as usize), central_extra_data: Vec::with_capacity(u16::MAX as usize), - alignment: u8::arbitrary(u)? as u16 + 1, + alignment: u16::arbitrary(u)?, }; u.arbitrary_loop(None, Some(16383), |u| { options