Merge pull request #61 from analytical-engines/fix-lzma-dictionary-size

This commit is contained in:
Timofey Solomko
2026-05-14 21:31:46 +08:00
+1 -1
View File
@@ -164,7 +164,7 @@ class SevenZipFolder {
else { throw LZMAError.wrongProperties }
var dictionarySize = 0
for i in 1..<4 {
for i in 1..<5 {
dictionarySize |= properties[i].toInt() << (8 * (i - 1))
}
let lzmaProperties = try LZMAProperties(lzmaByte: properties[0], dictionarySize)