mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #84 from cgohlke/patch-5
64 bit proof install of ops
This commit is contained in:
commit
8f63a27c65
|
@ -222,7 +222,7 @@ static PyMethodDef _functions[] = {
|
|||
static void
|
||||
install(PyObject *d, char* name, void* value)
|
||||
{
|
||||
PyObject *v = PyInt_FromLong((long) value);
|
||||
PyObject *v = PyInt_FromSsize_t((Py_ssize_t) value);
|
||||
if (!v || PyDict_SetItemString(d, name, v))
|
||||
PyErr_Clear();
|
||||
Py_XDECREF(v);
|
||||
|
|
Loading…
Reference in New Issue
Block a user