*.c: Use Python macros rather than functions where possible.
[catacomb-python] / group.c
diff --git a/group.c b/group.c
index 439ec42..5d7c34b 100644 (file)
--- a/group.c
+++ b/group.c
@@ -154,7 +154,7 @@ static PyObject *meth__DHInfo_genlimlee(PyObject *me,
     PGENERR(&exc);
   vec = PyList_New(nf);
   for (i = 0; i < nf; i++)
-    PyList_SetItem(vec, i, mp_pywrap(v[i]));
+    PyList_SET_ITEM(vec, i, mp_pywrap(v[i]));
   xfree(v);
   rc = Py_BuildValue("(NN)", fginfo_pywrap(&dp, dhinfo_pytype), vec);
 end: