mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Merge pull request #61 from analytical-engines/fix-lzma-dictionary-size
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user