From 817bffbd1f027578db34af97eac5b5be9ffca1e5 Mon Sep 17 00:00:00 2001 From: Vivian Kong Date: Wed, 24 Aug 2016 10:59:53 -0400 Subject: [PATCH] Adding s390x to CGFloat --- Foundation/CGFloat.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/CGFloat.swift b/Foundation/CGFloat.swift index 0f0a5a6211..bba73b4292 100644 --- a/Foundation/CGFloat.swift +++ b/Foundation/CGFloat.swift @@ -13,7 +13,7 @@ public struct CGFloat { /// The native type used to store the CGFloat, which is Float on /// 32-bit architectures and Double on 64-bit architectures. public typealias NativeType = Float -#elseif arch(x86_64) || arch(arm64) +#elseif arch(x86_64) || arch(arm64) || arch(s390x) /// The native type used to store the CGFloat, which is Float on /// 32-bit architectures and Double on 64-bit architectures. public typealias NativeType = Double @@ -168,7 +168,7 @@ public struct CGFloat { public init(bitPattern: UInt) { #if arch(i386) || arch(arm) native = NativeType(bitPattern: UInt32(bitPattern)) -#elseif arch(x86_64) || arch(arm64) +#elseif arch(x86_64) || arch(arm64) || arch(s390x) native = NativeType(bitPattern: UInt64(bitPattern)) #endif }