Use Py_ssize_t for PyArg_UnpackTuple arguments.
This commit is contained in:
parent
66485ae571
commit
762467475d
|
@ -25,7 +25,7 @@ PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
|
|||
PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...);
|
||||
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
|
||||
const char *, char **, ...);
|
||||
PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, int, int, ...);
|
||||
PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...);
|
||||
PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
|
||||
PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw);
|
||||
|
||||
|
|
|
@ -1662,9 +1662,9 @@ err:
|
|||
|
||||
|
||||
int
|
||||
PyArg_UnpackTuple(PyObject *args, const char *name, int min, int max, ...)
|
||||
PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, ...)
|
||||
{
|
||||
int i, l;
|
||||
Py_ssize_t i, l;
|
||||
PyObject **o;
|
||||
va_list vargs;
|
||||
|
||||
|
|
Loading…
Reference in New Issue