Skip to content

Commit 2712dbd

Browse files
committed
partial_vectorcall
1 parent 4ee9ca3 commit 2712dbd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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

Tools/usan/usan.function.supp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040
# for specific functions in specific files is not supported by Clang,
4141
# so we need to suppress the entire file.
4242

43-
function:Include/internal/pycore_call.h
44-
# partial_vectorcall
45-
4643
function:Include/internal/pycore_object.h
4744
# PyObject_Free
4845

0 commit comments

Comments
 (0)