mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-02 19:40:10 +03:00
Merge 8f90358d9a
into fe290d21c6
This commit is contained in:
commit
3c385057b1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user