From 8f90358d9a9b3d7a1cc3df16a66bf71e95ea4cd4 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 8 Mar 2013 10:46:46 -0800 Subject: [PATCH] 64 bit proof install of ops Fixes crashes on win-amd64 --- _imagingmath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_imagingmath.c b/_imagingmath.c index 4f377e9ac..d97c7b405 100644 --- a/_imagingmath.c +++ b/_imagingmath.c @@ -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);