From 2e70b054a931dd30827272787d655ffaac86a7b1 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 8 Mar 2013 10:13:50 -0800 Subject: [PATCH] 64 bit proof path_getattr_id --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path.c b/path.c index 622edb10a..0d9fadb8e 100644 --- a/path.c +++ b/path.c @@ -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[] = {