From: Barry Warsaw Date: Mon, 16 Dec 1996 18:15:34 +0000 (+0000) Subject: list2set(): correct return value (an int, not a PyObject*). X-Git-Tag: v1.5a1~742 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=529fcfe31f61fe499564f6778774f61c19671681;p=python list2set(): correct return value (an int, not a PyObject*). --- diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index dfe95484cf..047c0d437c 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -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);