Merge pull request #81 from cgohlke/patch-2

64 bit proof alloc_array
This commit is contained in:
Alex Clark ☺ 2013-03-08 12:59:47 -08:00
commit 88b712f79c

2
path.c
View File

@ -50,7 +50,7 @@ typedef struct {
static PyTypeObject PyPathType; static PyTypeObject PyPathType;
static double* static double*
alloc_array(int count) alloc_array(Py_ssize_t count)
{ {
double* xy; double* xy;
if (count < 0) { if (count < 0) {