mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
py2.6 support
This commit is contained in:
parent
fa81287f2c
commit
71333fcdbe
2
decode.c
2
decode.c
|
@ -938,7 +938,7 @@ _imaging_tell_pyFd(PyObject *fd)
|
|||
Py_ssize_t location;
|
||||
|
||||
result = PyObject_CallMethod(fd, "tell", NULL);
|
||||
location = PyLong_AsSsize_t(result);
|
||||
location = PyInt_AsSsize_t(result);
|
||||
|
||||
Py_DECREF(result);
|
||||
return location;
|
||||
|
|
Loading…
Reference in New Issue
Block a user