mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 19:44:13 +03:00
Merge pull request #82 from cgohlke/patch-3
64 bit proof path_getattr_id
This commit is contained in:
commit
84bd0cdceb
2
path.c
2
path.c
|
@ -539,7 +539,7 @@ static struct PyMethodDef methods[] = {
|
||||||
static PyObject*
|
static PyObject*
|
||||||
path_getattr_id(PyPathObject* self, void* closure)
|
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[] = {
|
static struct PyGetSetDef getsetters[] = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user