Skip to content

Commit

Permalink
use PyList_SetItem instead of PyList_SET_ITEM for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dliessi authored and Laurent Coustet committed Dec 10, 2019
1 parent 7e95031 commit ac15131
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 ac15131

Please sign in to comment.