File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public struct CGFloat {
13
13
/// The native type used to store the CGFloat, which is Float on
14
14
/// 32-bit architectures and Double on 64-bit architectures.
15
15
public typealias NativeType = Float
16
- #elseif arch(x86_64) || arch(arm64)
16
+ #elseif arch(x86_64) || arch(arm64) || arch(s390x)
17
17
/// The native type used to store the CGFloat, which is Float on
18
18
/// 32-bit architectures and Double on 64-bit architectures.
19
19
public typealias NativeType = Double
@@ -168,7 +168,7 @@ public struct CGFloat {
168
168
public init ( bitPattern: UInt ) {
169
169
#if arch(i386) || arch(arm)
170
170
native = NativeType ( bitPattern: UInt32 ( bitPattern) )
171
- #elseif arch(x86_64) || arch(arm64)
171
+ #elseif arch(x86_64) || arch(arm64) || arch(s390x)
172
172
native = NativeType ( bitPattern: UInt64 ( bitPattern) )
173
173
#endif
174
174
}
You can’t perform that action at this time.
0 commit comments