Skip to content

Commit b7c4b8c

Browse files
committed
Return a pointer using AnyObject instead of CFString
1 parent 2260aef commit b7c4b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Foundation/NSString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ extension NSString : _StructTypeBridgeable {
16481648
extension NSString : CVarArg {
16491649
@inlinable // c-abi
16501650
public var _cVarArgEncoding: [Int] {
1651-
return _encodeBitsAsWords(unsafeBitCast(self, to: CFString.self))
1651+
return _encodeBitsAsWords(unsafeBitCast(self, to: AnyObject.self))
16521652
}
16531653
}
16541654

0 commit comments

Comments
 (0)