Python3 support

This commit is contained in:
wiredfool 2016-05-29 13:50:10 -07:00
parent 533f4145bb
commit fa81287f2c

View File

@ -938,7 +938,7 @@ _imaging_tell_pyFd(PyObject *fd)
Py_ssize_t location;
result = PyObject_CallMethod(fd, "tell", NULL);
location = PyInt_AsSsize_t(result);
location = PyLong_AsSsize_t(result);
Py_DECREF(result);
return location;