Skip to content

Commit 886ece7

Browse files
committed
Make constants immortal
1 parent 4750324 commit 886ece7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CoreFoundation/Base.subproj/CFBase.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,11 @@ CFTypeRef CFMakeCollectable(CFTypeRef cf) CF_AUTOMATED_REFCOUNT_UNAVAILABLE;
686686

687687
#if DEPLOYMENT_RUNTIME_SWIFT
688688

689-
#define _CF_SWIFT_RC_PINNED_FLAG (0x1)
689+
#if TARGET_RT_64_BIT
690+
#define _CF_SWIFT_RC_PINNED_FLAG (0x80000004ffffffff)
691+
#else
692+
#define _CF_SWIFT_RC_PINNED_FLAG (0x800004FF)
693+
#endif
690694
#define _CF_CONSTANT_OBJECT_STRONG_RC ((uintptr_t)_CF_SWIFT_RC_PINNED_FLAG)
691695
#endif
692696

0 commit comments

Comments
 (0)