From c8a3fb7fb6d9269b70d497dd61b8ea60b1a99de5 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sat, 10 Jun 2017 22:44:25 +0300 Subject: [PATCH] No longer inout pointer in BZip2. --- Sources/BZip2.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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..