File tree 2 files changed +4
-4
lines changed
CoreFoundation/Base.subproj
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ _CF_EXPORT_SCOPE_END
372
372
373
373
// ---- Binary plist material ----------------------------------------
374
374
_CF_EXPORT_SCOPE_BEGIN
375
- typedef const struct __CFKeyedArchiverUID * CFKeyedArchiverUIDRef;
375
+ typedef const struct CF_BRIDGED_TYPE (_NSKeyedArchiverUID) __CFKeyedArchiverUID * CFKeyedArchiverUIDRef;
376
376
CF_EXPORT CFTypeID _CFKeyedArchiverUIDGetTypeID (void );
377
377
CF_EXPORT CFKeyedArchiverUIDRef _CFKeyedArchiverUIDCreate (CFAllocatorRef allocator, uint32_t value);
378
378
CF_EXPORT uint32_t _CFKeyedArchiverUIDGetValue (CFKeyedArchiverUIDRef uid);
Original file line number Diff line number Diff line change 9
9
10
10
import CoreFoundation
11
11
12
- extension CFKeyedArchiverUIDRef : _NSBridgable {
12
+ extension CFKeyedArchiverUID : _NSBridgable {
13
13
typealias NSType = _NSKeyedArchiverUID
14
14
15
15
internal var _nsObject : NSType { return unsafeBitCast ( self , to: NSType . self) }
16
16
}
17
17
18
18
internal class _NSKeyedArchiverUID : NSObject {
19
- typealias CFType = CFURL
19
+ typealias CFType = CFKeyedArchiverUID
20
20
internal var _base = _CFInfo ( typeID: _CFKeyedArchiverUIDGetTypeID ( ) )
21
21
internal var value : UInt32 = 0
22
22
@@ -29,7 +29,7 @@ internal class _NSKeyedArchiverUID : NSObject {
29
29
}
30
30
31
31
open override var hash : Int {
32
- return Int ( bitPattern: CFHash ( _cfObject) )
32
+ return Int ( bitPattern: CFHash ( _cfObject as CFTypeRef ! ) )
33
33
}
34
34
35
35
open override func isEqual( _ object: AnyObject ? ) -> Bool {
You can’t perform that action at this time.
0 commit comments