From 65535ffc48f77d9c03803d0867927ddc16115570 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sat, 13 May 2023 14:50:39 -0700 Subject: [PATCH] Eliminate a magic number --- src/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 64a1f352..98449326 100644 --- a/src/write.rs +++ b/src/write.rs @@ -152,7 +152,7 @@ impl arbitrary::Arbitrary<'_> for FileOptions { central_extra_data: Vec::with_capacity(u16::MAX as usize), alignment: u16::arbitrary(u)?, }; - u.arbitrary_loop(None, Some(16383), |u| { + u.arbitrary_loop(None, Some((u16::MAX / 4) as u32), |u| { options .add_extra_data( u16::arbitrary(u)?,