Use correct PyArg_ParseTuple format for Py_ssize_t

This commit is contained in:
Christoph Gohlke 2013-03-08 12:13:10 -08:00
parent bb74487e96
commit e5a7b63151

2
path.c
View File

@ -246,7 +246,7 @@ PyPath_Create(PyObject* self, PyObject* args)
Py_ssize_t count;
double *xy;
if (PyArg_ParseTuple(args, "i:Path", &count)) {
if (PyArg_ParseTuple(args, "n:Path", &count)) {
/* number of vertices */
xy = alloc_array(count);