Skip to content

Commit 5cd8176

Browse files
committed
fix
1 parent 7c231b6 commit 5cd8176

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

mypyc/lib-rt/misc_ops.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,14 +1130,13 @@ void CPy_SetTypeAliasTypeComputeFunction(PyObject *alias, PyObject *compute_valu
11301130
#endif
11311131

11321132
#if CPY_3_12_FEATURES
1133-
1134-
#include "internal/pycore_object.h"
1135-
1136-
#if !CPY_3_14_FEATURES
1137-
// The immortal refcount value is -1 (see PEP 683 and CPython source)
1138-
// This is safe for statically allocated objects and matches CPython's logic.
1139-
#define IMMORTAL_REFCNT ((Py_ssize_t)-1)
1140-
#endif
1133+
#if CPY_3_14_FEATURES
1134+
#include "internal/pycore_object.h"
1135+
#else
1136+
// The immortal refcount value is -1 (see PEP 683 and CPython source)
1137+
// This is safe for statically allocated objects and matches CPython's logic.
1138+
#define IMMORTAL_REFCNT ((Py_ssize_t)-1)
1139+
#endif
11411140

11421141
void CPy_SetImmortal(PyObject *obj) {
11431142
#if CPY_3_14_FEATURES

0 commit comments

Comments
 (0)