diff --git a/Sources/ZIPFoundation/Entry.swift b/Sources/ZIPFoundation/Entry.swift index 300ab802..69a9cbbe 100644 --- a/Sources/ZIPFoundation/Entry.swift +++ b/Sources/ZIPFoundation/Entry.swift @@ -299,19 +299,19 @@ extension Entry.CentralDirectoryStructure { extension Entry.CentralDirectoryStructure { var effectiveCompressedSize: UInt64 { - if self.isZIP64, let compressedSize = self.zip64ExtendedInformation?.compressedSize, compressedSize > 0 { + if self.isZIP64, let compressedSize = self.zip64ExtendedInformation?.compressedSize { return compressedSize } return UInt64(compressedSize) } var effectiveUncompressedSize: UInt64 { - if self.isZIP64, let uncompressedSize = self.zip64ExtendedInformation?.uncompressedSize, uncompressedSize > 0 { + if self.isZIP64, let uncompressedSize = self.zip64ExtendedInformation?.uncompressedSize { return uncompressedSize } return UInt64(uncompressedSize) } var effectiveRelativeOffsetOfLocalHeader: UInt64 { - if self.isZIP64, let offset = self.zip64ExtendedInformation?.relativeOffsetOfLocalHeader, offset > 0 { + if self.isZIP64, let offset = self.zip64ExtendedInformation?.relativeOffsetOfLocalHeader { return offset } return UInt64(relativeOffsetOfLocalHeader)