Line 0
Link Here
|
|
|
1 |
PyList_SET_ITEM() is supposed to be void, but as a macro it's an |
2 |
expression and has a pointer value. Clang 4.0 trips on the bogus |
3 |
pointer comparison; given the comparison, it should be PyList_SetItem() |
4 |
which returns -1 on failure. |
5 |
|
6 |
--- types.sip.orig 2017-01-21 07:19:29 UTC |
7 |
+++ types.sip |
8 |
@@ -27,7 +27,7 @@ |
9 |
foreach (Poppler::Document::RenderBackend value, set) |
10 |
{ |
11 |
PyObject *obj = PyLong_FromLong ((long) value); |
12 |
- if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0) |
13 |
+ if (obj == NULL || PyList_SetItem (l, i, obj) < 0) |
14 |
{ |
15 |
Py_DECREF(l); |
16 |
|