diff --git a/types.sip b/types.sip index c692d55..7b684ac 100644 --- a/types.sip +++ b/types.sip @@ -27,7 +27,7 @@ foreach (Poppler::Document::RenderBackend value, set) { PyObject *obj = PyLong_FromLong ((long) value); - if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0) + if (obj == NULL || PyList_SetItem(l, i, obj) < 0) { Py_DECREF(l);