Skip to content

Commit b7ddb60

Browse files
committed
warnings: revert removing unsafeBitCast() in _bridgeToObjectiveC()
1 parent d3ecd80 commit b7ddb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/CharacterSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgeb
486486

487487
@_semantics("convertToObjectiveC")
488488
public func _bridgeToObjectiveC() -> NSCharacterSet {
489-
return _wrapped
489+
return unsafeBitCast(_wrapped, to: NSCharacterSet.self)
490490
}
491491

492492
public static func _forceBridgeFromObjectiveC(_ input: NSCharacterSet, result: inout CharacterSet?) {

0 commit comments

Comments
 (0)