From 75fda65f5205fdeb0c1c026d380d7139ea90e62b Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Fri, 25 May 2012 14:59:26 +0200 Subject: [PATCH] force length of PyArg_ParseTuple("s#) to be Py_ssize_t rather than int --- src/pygit2/repository.c | 3 +++ 1 file changed, 3 insertions(+) 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