From 1aa26c096727b5acf59fb0ed6b1dad4851152373 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 14 May 2016 22:14:52 -0700 Subject: [PATCH] NSGeometry: update accessors Apply fixit for '_toBitPattern()' deprecation. NFC. --- Foundation/NSGeometry.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/NSGeometry.swift b/Foundation/NSGeometry.swift index 63adbb960c..5a8854f0af 100644 --- a/Foundation/NSGeometry.swift +++ b/Foundation/NSGeometry.swift @@ -34,9 +34,9 @@ public struct CGFloat { private var hash: Int { #if arch(i386) || arch(arm) - return Int(Float(self.native)._toBitPattern()) + return Int(Float(self.native).bitPattern) #else - return Int(self.native._toBitPattern()) + return Int(self.native.bitPattern) #endif } }