projects
/
linpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d050a
)
Use PyList_SET_ITEM for list initialization in _isl.c
author
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Mon, 23 Jun 2014 10:34:09 +0000
(12:34 +0200)
committer
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Mon, 23 Jun 2014 10:34:09 +0000
(12:34 +0200)
pypol/_isl.c
patch
|
blob
|
history
diff --git
a/pypol/_isl.c
b/pypol/_isl.c
index
a62d650
..
b9d6092
100644
(file)
--- a/
pypol/_isl.c
+++ b/
pypol/_isl.c
@@
-19,7
+19,8
@@
int _isl_isl_basic_set_add_constraint_list(__isl_take isl_constraint *c,
if (value == NULL) {
return -1;
}
- return PyList_SetItem(list->constraints, list->cursor++, value);
+ PyList_SET_ITEM(list->constraints, list->cursor++, value);
+ return 0;
}
static PyObject * _isl_isl_basic_set_constraints(PyObject *self,