Skip to content

Commit f0a09c3

Browse files
Review addressed
1 parent b7d7a96 commit f0a09c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Include/internal/pycore_stackref.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,8 @@ static const _PyStackRef PyStackRef_NULL = { .bits = Py_TAG_DEFERRED};
457457
static inline PyObject *
458458
_PyStackRef_AsTuple(_PyStackRef ref, PyObject *op)
459459
{
460-
return Py_BuildValue("(Ii)", Py_REFCNT(op), 0);
460+
// Do not check StackRef flags in the free threading build.
461+
return Py_BuildValue("(Ii)", Py_REFCNT(op), -1);
461462
}
462463

463464
static inline PyObject *

0 commit comments

Comments
 (0)