From 13f43ce189ae4164194cb3d1a4fd98f30237f8e7 Mon Sep 17 00:00:00 2001 From: Ethan Wong Date: Sun, 7 May 2023 15:06:20 +0800 Subject: [PATCH] Fix misspelled type uInt. (#59) --- Sources/Gzip/Data+Gzip.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Gzip/Data+Gzip.swift b/Sources/Gzip/Data+Gzip.swift index 076fe65..a9660a0 100644 --- a/Sources/Gzip/Data+Gzip.swift +++ b/Sources/Gzip/Data+Gzip.swift @@ -201,7 +201,7 @@ extension Data { self.withUnsafeBytes { (inputPointer: UnsafeRawBufferPointer) in stream.next_in = UnsafeMutablePointer(mutating: inputPointer.bindMemory(to: Bytef.self).baseAddress!).advanced(by: Int(stream.total_in)) - stream.avail_in = uint(inputCount) - uInt(stream.total_in) + stream.avail_in = uInt(inputCount) - uInt(stream.total_in) data.withUnsafeMutableBytes { (outputPointer: UnsafeMutableRawBufferPointer) in stream.next_out = outputPointer.bindMemory(to: Bytef.self).baseAddress!.advanced(by: Int(stream.total_out)) @@ -277,7 +277,7 @@ extension Data { self.withUnsafeBytes { (inputPointer: UnsafeRawBufferPointer) in let inputStartPosition = totalIn + stream.total_in stream.next_in = UnsafeMutablePointer(mutating: inputPointer.bindMemory(to: Bytef.self).baseAddress!).advanced(by: Int(inputStartPosition)) - stream.avail_in = uint(inputCount) - uInt(inputStartPosition) + stream.avail_in = uInt(inputCount) - uInt(inputStartPosition) data.withUnsafeMutableBytes { (outputPointer: UnsafeMutableRawBufferPointer) in let outputStartPosition = totalOut + stream.total_out