Skip to content

Commit

Permalink
Merge pull request #2 from Beam-Studio/main
Browse files Browse the repository at this point in the history
Fix compilation issue for x64 hardware
  • Loading branch information
pauljohanneskraft committed Mar 14, 2024
2 parents 136db03 + 4f35a29 commit 0616be1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/CRCCalculator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0616be1

Please sign in to comment.