diff --git a/Sources/BZip2.swift b/Sources/BZip2.swift index 75ac6bfe..e7af689d 100644 --- a/Sources/BZip2.swift +++ b/Sources/BZip2.swift @@ -251,8 +251,9 @@ public class BZip2: DecompressionAlgorithm { return pointers } - func bwt(reverse bytes: [UInt8], end: inout Int) -> [UInt8] { + func bwt(reverse bytes: [UInt8], _ pointer: Int) -> [UInt8] { var resultBytes: [UInt8] = [] + var end = pointer if bytes.count > 0 { let T = bwt(transform: bytes) for _ in 0..