mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-111178: Fix type of PyCMethod's "nargs" argument (GH-131135)
Replace "size_t nargs" with "Py_ssize_t nargs" in PyCMethod.
This commit is contained in:
parent
e0637cebe5
commit
4dcbe06fd2
2 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,7 @@ typedef PyObject *(*PyCFunctionFastWithKeywords) (PyObject *,
|
|||
PyObject *const *, Py_ssize_t,
|
||||
PyObject *);
|
||||
typedef PyObject *(*PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *,
|
||||
size_t, PyObject *);
|
||||
Py_ssize_t, PyObject *);
|
||||
|
||||
// For backwards compatibility. `METH_FASTCALL` was added to the stable API in
|
||||
// 3.10 alongside `_PyCFunctionFastWithKeywords` and `_PyCFunctionFast`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue