summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-24 22:04:09 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-08-24 22:04:09 (GMT)
commit74319ae219e049ae78897513b897c513f2d06445 (patch)
treed33588f2a4330c62f340ec51b9f4655b4a6d7fd7 /Include
parentc532b3c1cebdbdb2aac8dc3d2be3904d754aee9c (diff)
downloadcpython-74319ae219e049ae78897513b897c513f2d06445.zip
cpython-74319ae219e049ae78897513b897c513f2d06445.tar.gz
cpython-74319ae219e049ae78897513b897c513f2d06445.tar.bz2
Use Py_ssize_t type for number of arguments
Issue #27848: use Py_ssize_t rather than C int for the number of function positional and keyword arguments.
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h2
-rw-r--r--Include/funcobject.h3
-rw-r--r--Include/methodobject.h3
3 files changed, 5 insertions, 3 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 69c4890..5820864 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -280,7 +280,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
Return the result on success. Raise an exception on return NULL on
error. */
PyAPI_FUNC(PyObject *) _PyObject_FastCallDict(PyObject *func,
- PyObject **args, int nargs,
+ PyObject **args, Py_ssize_t nargs,
PyObject *kwargs);
#define _PyObject_FastCall(func, args, nargs) \
diff --git a/Include/funcobject.h b/Include/funcobject.h
index 24602e6..6b89c86 100644
--- a/Include/funcobject.h
+++ b/Include/funcobject.h
@@ -61,7 +61,8 @@ PyAPI_FUNC(int) PyFunction_SetAnnotations(PyObject *, PyObject *);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyFunction_FastCallDict(
PyObject *func,
- PyObject **args, int nargs,
+ PyObject **args,
+ Py_ssize_t nargs,
PyObject *kwargs);
#endif
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 107a650..84a1497 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -39,7 +39,8 @@ PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
- PyObject **args, int nargs,
+ PyObject **args,
+ Py_ssize_t nargs,
PyObject *kwargs);
#endif