From 886d3a00e8c9524ee414498fd96cd7816af4d3e6 Mon Sep 17 00:00:00 2001 From: Davide Liessi Date: Mon, 1 Jan 2018 16:46:26 +0100 Subject: [PATCH] use PyList_SetItem instead of PyList_SET_ITEM for comparison see https://github.com/wbsoft/python-poppler-qt4/issues/17, https://github.com/wbsoft/python-poppler-qt4/pull/18, https://github.com/macports/macports-ports/pull/1064, and https://trac.macports.org/ticket/55014#comment:7 --- types.sip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.sip b/types.sip index b6df997..06ed299 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);