diff --git a/SWCompression.podspec b/SWCompression.podspec index c4f1b93e..9f45653c 100644 --- a/SWCompression.podspec +++ b/SWCompression.podspec @@ -26,7 +26,7 @@ Pod::Spec.new do |s| s.subspec 'Common' do |sp| sp.public_header_files = 'Sources/Service/SWCompression.h' - sp.source_files = "Sources/{DataWithPointer.swift,HuffmanTable.swift,HuffmanLength.swift,Protocols.swift,Extensions.swift,Service/*.swift,Service/*.h}" + sp.source_files = "Sources/{DataWithPointer.swift,HuffmanTree.swift,HuffmanLength.swift,Protocols.swift,Extensions.swift,Service/*.swift,Service/*.h}" end s.subspec 'Deflate' do |sp| diff --git a/Sources/Deflate.swift b/Sources/Deflate.swift index 0708dcb2..db22df3d 100644 --- a/Sources/Deflate.swift +++ b/Sources/Deflate.swift @@ -8,6 +8,7 @@ import Foundation +// TODO: Rename HuffmanTableError to HuffmanTreeError. /** Error happened during deflate decompression. It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all. @@ -101,7 +102,7 @@ public class Deflate: DecompressionAlgorithm { let codeLengthsLength = pointerData.intFromBits(count: 4) + 4 // Read code lengths codes. - // Moreover, they are stored in a very specific order (defined by HuffmanTable.Constants.codeLengthOrders). + // Moreover, they are stored in a very specific order (defined by HuffmanTree.Constants.codeLengthOrders). var lengthsForOrder = Array(repeating: 0, count: 19) for i in 0..