Skip to content

Commit bb6772f

Browse files
Fixed a compilation issue for universal binaries where Float16 is unavailable on Intel
1 parent 3e5b9fe commit bb6772f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/CodableDatastore/Indexes/Indexable.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ extension Double: RangedIndexable {}
6262
@available(macOS 13.0, iOS 16, tvOS 16, watchOS 9, *)
6363
extension Duration: RangedIndexable {}
6464
extension Float: RangedIndexable {}
65+
#if arch(arm64)
6566
@available(macOS 11.0, iOS 14, tvOS 14, watchOS 7, *)
6667
extension Float16: RangedIndexable {}
68+
#endif
6769
extension Int: DiscreteIndexable, RangedIndexable {}
6870
extension Int8: DiscreteIndexable, RangedIndexable {}
6971
extension Int16: DiscreteIndexable, RangedIndexable {}

0 commit comments

Comments
 (0)