mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 19:04:07 +00:00
Fix incorrect block count check
This commit is contained in:
parent
a3389a1aa9
commit
432d202a3c
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ impl Entry {
|
||||||
|
|
||||||
assert!(self.blocks.is_some());
|
assert!(self.blocks.is_some());
|
||||||
let blocks = self.blocks.as_ref().unwrap();
|
let blocks = self.blocks.as_ref().unwrap();
|
||||||
if !blocks.len() == 1 || self.encrypted {
|
if blocks.len() > 1 || self.encrypted {
|
||||||
for b in blocks {
|
for b in blocks {
|
||||||
let block_size = b.end - b.start;
|
let block_size = b.end - b.start;
|
||||||
writer.write_u32::<LE>(block_size.try_into().unwrap())?;
|
writer.write_u32::<LE>(block_size.try_into().unwrap())?;
|
||||||
|
|
Loading…
Reference in a new issue