[StringGuts] Support for 32-bit platforms

Add 32-bit support to the new StringGuts.
This commit is contained in:
Karoy Lorentey
2018-01-09 22:24:44 +00:00
committed by Michael Ilseman
parent 5cf9fd7414
commit f2a96496a0
21 changed files with 529 additions and 181 deletions

View File

@@ -23,8 +23,8 @@ public class NSSimpleCString {}
public class NSConstantString {}
// Called by the SwiftObject implementation.
public func _convertStringToNSString(_ string: String) -> NSString {
return string._bridgeToObjectiveC()
public func _getDescription<T>(_ x: T) -> NSString {
return String(reflecting: x)._bridgeToObjectiveC()
}
extension NSString : ExpressibleByStringLiteral {