Eliminate a magic number

This commit is contained in:
Chris Hennick 2023-05-13 14:50:39 -07:00
parent bc86898cdd
commit 65535ffc48
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -152,7 +152,7 @@ impl arbitrary::Arbitrary<'_> for FileOptions {
central_extra_data: Vec::with_capacity(u16::MAX as usize), central_extra_data: Vec::with_capacity(u16::MAX as usize),
alignment: u16::arbitrary(u)?, alignment: u16::arbitrary(u)?,
}; };
u.arbitrary_loop(None, Some(16383), |u| { u.arbitrary_loop(None, Some((u16::MAX / 4) as u32), |u| {
options options
.add_extra_data( .add_extra_data(
u16::arbitrary(u)?, u16::arbitrary(u)?,