1024jp / GzipSwift

Swift package that enables gzip/gunzip Data using zlib
MIT License
547 stars 133 forks source link

DataSize.chunk incorrect #41

Closed MorrisRH closed 5 years ago

MorrisRH commented 5 years ago

DataSize.chunk is currently 2 ^ 14 which is a value of 12 (^ is the XOR operator), not the intended value of 16384. Changing this to 1 << 14 solved an issue where data compressed with .gzipped() wouldn't decompress with .gunzipped().

1024jp commented 5 years ago

Thank you for pointing it out! I've fixed it in v5.1.0.