Skip to content

Commit

Permalink
Use correct tvOS and watchOS versions
Browse files Browse the repository at this point in the history
Discovered crc32_z is actually available on these platforms.
  • Loading branch information
Wevah committed Apr 10, 2022
1 parent 586f483 commit 166d705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IDNA/Data+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extension Data {
return self.withUnsafeBytes {
let buffer = $0.bindMemory(to: UInt8.self)

if #available(macOS 10.13, iOS 11.0, tvOS 9999.0, watchOS 9999.0, *) {
if #available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *) {
let initial = zlib.crc32_z(0, nil, 0)
return UInt32(zlib.crc32_z(initial, buffer.baseAddress, buffer.count))
} else {
Expand Down

0 comments on commit 166d705

Please sign in to comment.