Skip to content

Commit d965529

Browse files
Changes in Py_BuildValue calls 2
1 parent b1b3b2b commit d965529

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
@@ -480,7 +480,7 @@ static inline PyObject *
480480
_PyStackRef_AsTuple(_PyStackRef ref, PyObject *op)
481481
{
482482
// Do not check StackRef flags in the free threading build.
483-
return Py_BuildValue("(ni)", Py_REFCNT(op), flags);
483+
return Py_BuildValue("(ni)", Py_REFCNT(op), -1);
484484
}
485485

486486
static inline PyObject *
@@ -671,7 +671,7 @@ static inline PyObject *
671671
_PyStackRef_AsTuple(_PyStackRef ref, PyObject *op)
672672
{
673673
int flags = ref.bits & Py_TAG_BITS;
674-
return Py_BuildValue("(ni)", Py_REFCNT(op), -1);
674+
return Py_BuildValue("(ni)", Py_REFCNT(op), flags);
675675
}
676676

677677
#ifdef Py_DEBUG

0 commit comments

Comments
 (0)