list2set(): correct return value (an int, not a PyObject*).

This commit is contained in:
Barry Warsaw 1996-12-16 18:15:34 +00:00
parent 0969ad213d
commit 529fcfe31f

View file

@ -101,7 +101,7 @@ list2set(list, set, fd2obj)
/* any intervening fileno() calls could decr this refcnt */
if (!(o = PyList_GetItem(list, i)))
return NULL;
return -1;
Py_INCREF(o);