Skip to content

Commit

Permalink
Fix misspelled type uInt. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
GetToSet authored May 7, 2023
1 parent 48e46bd commit 13f43ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Gzip/Data+Gzip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ extension Data {

self.withUnsafeBytes { (inputPointer: UnsafeRawBufferPointer) in
stream.next_in = UnsafeMutablePointer<Bytef>(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))
Expand Down Expand Up @@ -277,7 +277,7 @@ extension Data {
self.withUnsafeBytes { (inputPointer: UnsafeRawBufferPointer) in
let inputStartPosition = totalIn + stream.total_in
stream.next_in = UnsafeMutablePointer<Bytef>(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
Expand Down

0 comments on commit 13f43ce

Please sign in to comment.