Skip to content

Commit 9b1fe80

Browse files
committed
partial_vectorcall
1 parent dc12237 commit 9b1fe80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/_functoolsmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,10 @@ partial_vectorcall_fallback(PyThreadState *tstate, partialobject *pto,
365365
}
366366

367367
static PyObject *
368-
partial_vectorcall(partialobject *pto, PyObject *const *args,
368+
partial_vectorcall(PyObject *self, PyObject *const *args,
369369
size_t nargsf, PyObject *kwnames)
370370
{
371+
partialobject *pto = (partialobject *)(self);
371372
PyThreadState *tstate = _PyThreadState_GET();
372373
Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
373374

@@ -468,7 +469,7 @@ partial_setvectorcall(partialobject *pto)
468469
* but that is unlikely (why use partial without arguments?),
469470
* so we don't optimize that */
470471
else {
471-
pto->vectorcall = (vectorcallfunc)partial_vectorcall;
472+
pto->vectorcall = partial_vectorcall;
472473
}
473474
}
474475

0 commit comments

Comments
 (0)