X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/blobdiff_plain/d9d050a1a44fd98d3f4553aeff16a0aa60ca8755..f85fc6de63ea023ab1a6aa4f5ff4ca96c79e384d:/pypol/_isl.c diff --git a/pypol/_isl.c b/pypol/_isl.c index a62d650..06f63fe 100644 --- a/pypol/_isl.c +++ b/pypol/_isl.c @@ -9,7 +9,7 @@ struct _isl_constraint_list { }; typedef struct _isl_constraint_list _isl_constraint_list; -int _isl_isl_basic_set_add_constraint_list(__isl_take isl_constraint *c, +static int _isl_isl_basic_set_add_constraint_list(__isl_take isl_constraint *c, void *user) { _isl_constraint_list *list; PyObject *value; @@ -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,