File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ having all the lower 32 bits set, which will avoid the reference count to go
88
88
beyond the refcount limit. Immortality checks for reference count decreases will
89
89
be done by checking the bit sign flag in the lower 32 bits.
90
90
*/
91
- #define _Py_IMMORTAL_REFCNT (Py_ssize_t) UINT_MAX
91
+ #define _Py_IMMORTAL_REFCNT _Py_CAST (Py_ssize_t, UINT_MAX)
92
92
93
93
#else
94
94
/*
@@ -103,7 +103,7 @@ immortality, but the execution would still be correct.
103
103
Reference count increases and decreases will first go through an immortality
104
104
check by comparing the reference count field to the immortality reference count.
105
105
*/
106
- #define _Py_IMMORTAL_REFCNT (Py_ssize_t)( UINT_MAX >> 2)
106
+ #define _Py_IMMORTAL_REFCNT _Py_CAST (Py_ssize_t, UINT_MAX >> 2)
107
107
#endif
108
108
109
109
// Py_NOGIL builds indicate immortal objects using `ob_ref_local`, which is
You can’t perform that action at this time.
0 commit comments