This commit is contained in:
Christoph Gohlke 2013-03-08 11:00:50 -08:00
commit 3c385057b1

View File

@ -222,7 +222,7 @@ static PyMethodDef _functions[] = {
static void static void
install(PyObject *d, char* name, void* value) 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)) if (!v || PyDict_SetItemString(d, name, v))
PyErr_Clear(); PyErr_Clear();
Py_XDECREF(v); Py_XDECREF(v);