mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
list2set(): correct return value (an int, not a PyObject*).
This commit is contained in:
parent
0969ad213d
commit
529fcfe31f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue