From 799abdac874d1eb1a1836e2d122030e938e0bb4b Mon Sep 17 00:00:00 2001 From: Davide Liessi Date: Tue, 28 Nov 2017 14:33:50 +0100 Subject: [PATCH] use PyList_SetItem instead of PyList_SET_ITEM for comparison seems to fix #17 see https://trac.macports.org/ticket/55014#comment:5 --- types.sip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);