Skip to content

Commit

Permalink
Merge pull request #21 from dliessi/fix-pylist-setitem
Browse files Browse the repository at this point in the history
use PyList_SetItem instead of PyList_SET_ITEM for comparison
  • Loading branch information
wbsoft authored Sep 18, 2019
2 parents 8ad078b + 886d3a0 commit 9955117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9955117

Please sign in to comment.