Skip to content

Commit b1b3b2b

Browse files
Changes in Py_BuildValue calls
1 parent e45d254 commit b1b3b2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/internal/pycore_stackref.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static inline PyObject *
8080
_PyStackRef_AsTuple(_PyStackRef ref, PyObject *op)
8181
{
8282
int flags = ref.index & Py_TAG_BITS;
83-
return Py_BuildValue("(Ii)", Py_REFCNT(op), flags);
83+
return Py_BuildValue("(ni)", Py_REFCNT(op), flags);
8484
}
8585

8686
static inline _PyStackRef
@@ -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("(Ii)", Py_REFCNT(op), -1);
483+
return Py_BuildValue("(ni)", Py_REFCNT(op), flags);
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("(Ii)", Py_REFCNT(op), flags);
674+
return Py_BuildValue("(ni)", Py_REFCNT(op), -1);
675675
}
676676

677677
#ifdef Py_DEBUG

0 commit comments

Comments
 (0)