Skip to content

Commit 3a74bac

Browse files
authored
Merge pull request swiftlang#1300 from rudkx/fix-iuo-cast
Fix cast that is disallowed by SE-0054.
2 parents 17789b5 + 6f94583 commit 3a74bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSKeyedArchiverHelpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal class _NSKeyedArchiverUID : NSObject {
2929
}
3030

3131
open override var hash: Int {
32-
return Int(bitPattern: CFHash(_cfObject as CFTypeRef!))
32+
return Int(bitPattern: CFHash(_cfObject as CFTypeRef?))
3333
}
3434

3535
open override func isEqual(_ object: Any?) -> Bool {

0 commit comments

Comments
 (0)