64 bit proof path_getattr_id

This commit is contained in:
Christoph Gohlke 2013-03-08 10:13:50 -08:00
parent a67b849bb0
commit 2e70b054a9

2
path.c
View File

@ -539,7 +539,7 @@ static struct PyMethodDef methods[] = {
static PyObject*
path_getattr_id(PyPathObject* self, void* closure)
{
return Py_BuildValue("l", (long) self->xy);
return Py_BuildValue("n", (Py_ssize_t) self->xy);
}
static struct PyGetSetDef getsetters[] = {