mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
64 bit proof install of ops
Fixes crashes on win-amd64
This commit is contained in:
parent
a67b849bb0
commit
8f90358d9a
|
@ -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