Skip to content

Commit 6390e57

Browse files
Build fix
1 parent 577c137 commit 6390e57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_stackref.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,15 +644,15 @@ static const _PyStackRef PyStackRef_NULL = { .bits = PyStackRef_NULL_BITS };
644644
#define PyStackRef_IsFalse(REF) ((REF).bits == (((uintptr_t)&_Py_FalseStruct) | Py_TAG_REFCNT))
645645
#define PyStackRef_IsNone(REF) ((REF).bits == (((uintptr_t)&_Py_NoneStruct) | Py_TAG_REFCNT))
646646

647-
#ifdef Py_DEBUG
648-
649647
static inline PyObject *
650648
_PyStackRef_AsTuple(_PyStackRef ref, PyObject *op)
651649
{
652650
int flags = ref.bits & Py_TAG_BITS;
653651
return Py_BuildValue("(Ii)", Py_REFCNT(op), flags);
654652
}
655653

654+
#ifdef Py_DEBUG
655+
656656
static inline void PyStackRef_CheckValid(_PyStackRef ref) {
657657
assert(ref.bits != 0);
658658
int tag = ref.bits & Py_TAG_BITS;

0 commit comments

Comments
 (0)