From 4f35a29e563bd6a08ae41cd3e0f5e5d276fa2c5a Mon Sep 17 00:00:00 2001 From: Aurelien Bidon Date: Fri, 3 Nov 2023 12:22:08 +0100 Subject: [PATCH] Fix compilation issue for x64 hardware --- Sources/CRCCalculator.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/CRCCalculator.swift b/Sources/CRCCalculator.swift index 887fb2c..6dfb174 100644 --- a/Sources/CRCCalculator.swift +++ b/Sources/CRCCalculator.swift @@ -57,10 +57,12 @@ extension CRCCalculator { withUnsafeBytes(of: value.bigEndian) { append($0) } } + #if arch(arm64) @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) public mutating func append(bigEndian value: Float16) { append(bigEndian: value.bitPattern) } + #endif public mutating func append(bigEndian value: Float32) { append(bigEndian: value.bitPattern)