mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-13 18:11:02 +03:00
Python3 support
This commit is contained in:
parent
533f4145bb
commit
fa81287f2c
2
decode.c
2
decode.c
|
@ -938,7 +938,7 @@ _imaging_tell_pyFd(PyObject *fd)
|
||||||
Py_ssize_t location;
|
Py_ssize_t location;
|
||||||
|
|
||||||
result = PyObject_CallMethod(fd, "tell", NULL);
|
result = PyObject_CallMethod(fd, "tell", NULL);
|
||||||
location = PyInt_AsSsize_t(result);
|
location = PyLong_AsSsize_t(result);
|
||||||
|
|
||||||
Py_DECREF(result);
|
Py_DECREF(result);
|
||||||
return location;
|
return location;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user