8000 fix bug in methodcaller_reduce · python/cpython@83c76bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 83c76bb

Browse files
committed
fix bug in methodcaller_reduce
1 parent 8be0aed commit 83c76bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_operator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ methodcaller_reduce(methodcallerobject *mc, PyObject *Py_UNUSED(ignored))
17501750
{
17511751
if (!mc->kwds || PyDict_GET_SIZE(mc->kwds) == 0) {
17521752
Py_ssize_t i;
1753-
Py_ssize_t newarg_size = PyTuple_GET_SIZE(mc->vectorcall_args);
1753+
Py_ssize_t newarg_size = PyTuple_GET_SIZE(mc->xargs);
17541754
PyObject * newargs = PyTuple_New(newarg_size);
17551755
if (newargs == NULL)
17561756
return NULL;

0 commit comments

Comments
 (0)
0