diff --git a/Package.resolved b/Package.resolved index 5a99654..5bf75b9 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/QuickBirdEng/crc-swift.git", "state": { "branch": null, - "revision": "136db0392ff9afdd1fe51bc1fdc05aaf7585bc88", - "version": "0.1.0" + "revision": "0616be13dec7b6dc4b55e266cba39c1772902b08", + "version": "0.1.1" } } ] diff --git a/Package.swift b/Package.swift index fd107db..0d62ccb 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( dependencies: [ .package( url: "https://github.com/QuickBirdEng/crc-swift.git", - from: "0.1.0" + from: "0.1.1" ), ], targets: [ diff --git a/Sources/DataKit/Values/ReadWritable+FloatingPoint.swift b/Sources/DataKit/Values/ReadWritable+FloatingPoint.swift index 90908eb..9f86169 100644 --- a/Sources/DataKit/Values/ReadWritable+FloatingPoint.swift +++ b/Sources/DataKit/Values/ReadWritable+FloatingPoint.swift @@ -14,8 +14,11 @@ public protocol FixedWidthFloatingPoint: BinaryFloatingPoint { var bitPattern: BitPattern { get } } +#if arch(arm64) @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) extension Float16: FixedWidthFloatingPoint, ReadWritable {} +#endif + extension Float32: FixedWidthFloatingPoint, ReadWritable {} extension Float64: FixedWidthFloatingPoint, ReadWritable {}