force length of PyArg_ParseTuple("s#) to be Py_ssize_t rather than int

This commit is contained in:
Nico von Geyso
2012-05-25 14:59:26 +02:00
parent 0ac20f2d9d
commit 75fda65f52

View File

@@ -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 <Python.h>
#include <pygit2/error.h>
#include <pygit2/types.h>