summaryrefslogtreecommitdiffstats
path: root/Modules/functionalmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/functionalmodule.c')
-rw-r--r--Modules/functionalmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/functionalmodule.c b/Modules/functionalmodule.c
index 4b2e9b4..38ef43a 100644
--- a/Modules/functionalmodule.c
+++ b/Modules/functionalmodule.c
@@ -48,7 +48,7 @@ partial_new(PyTypeObject *type, PyObject *args, PyObject *kw)
pto->fn = func;
Py_INCREF(func);
- pto->args = PyTuple_GetSlice(args, 1, INT_MAX);
+ pto->args = PyTuple_GetSlice(args, 1, PY_SSIZE_T_MAX);
if (pto->args == NULL) {
pto->kw = NULL;
Py_DECREF(pto);