From 432d202a3c80dab1fda3ea9a4ffd42ed4f3083e3 Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Sat, 11 Feb 2023 23:24:32 -0600 Subject: [PATCH] Fix incorrect block count check --- repak/src/entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repak/src/entry.rs b/repak/src/entry.rs index 49f2185..2336185 100644 --- a/repak/src/entry.rs +++ b/repak/src/entry.rs @@ -176,7 +176,7 @@ impl Entry { assert!(self.blocks.is_some()); let blocks = self.blocks.as_ref().unwrap(); - if !blocks.len() == 1 || self.encrypted { + if blocks.len() > 1 || self.encrypted { for b in blocks { let block_size = b.end - b.start; writer.write_u32::(block_size.try_into().unwrap())?;