Skip to content

Commit fd3db2f

Browse files
vivkongphausler
authored andcommitted
Adding s390x to CGFloat (#591)
1 parent 099f97a commit fd3db2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/CGFloat.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct CGFloat {
1313
/// The native type used to store the CGFloat, which is Float on
1414
/// 32-bit architectures and Double on 64-bit architectures.
1515
public typealias NativeType = Float
16-
#elseif arch(x86_64) || arch(arm64)
16+
#elseif arch(x86_64) || arch(arm64) || arch(s390x)
1717
/// The native type used to store the CGFloat, which is Float on
1818
/// 32-bit architectures and Double on 64-bit architectures.
1919
public typealias NativeType = Double
@@ -168,7 +168,7 @@ public struct CGFloat {
168168
public init(bitPattern: UInt) {
169169
#if arch(i386) || arch(arm)
170170
native = NativeType(bitPattern: UInt32(bitPattern))
171-
#elseif arch(x86_64) || arch(arm64)
171+
#elseif arch(x86_64) || arch(arm64) || arch(s390x)
172172
native = NativeType(bitPattern: UInt64(bitPattern))
173173
#endif
174174
}

0 commit comments

Comments
 (0)