diff --git a/src/pygit2/repository.c b/src/pygit2/repository.c index a06e5f1..763fa48 100644 --- a/src/pygit2/repository.c +++ b/src/pygit2/repository.c @@ -1,3 +1,6 @@ +// with the following define PY_SSIZE_T_CLEAN +// the length of PyArg_ParseTuple will be Py_ssize_t rather than int +#define PY_SSIZE_T_CLEAN #include #include #include