commit | 529fcfe31f61fe499564f6778774f61c19671681 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Mon Dec 16 18:15:34 1996 +0000 |
committer | Barry Warsaw <barry@python.org> | Mon Dec 16 18:15:34 1996 +0000 |
tree | acdc07567466b7ef681b6c46aa1437db4f800acc | |
parent | 0969ad213d73a052e66ebf83cb4eae48a0dd7b55 [diff] |
list2set(): correct return value (an int, not a PyObject*).
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index dfe95484..047c0d4 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c
@@ -101,7 +101,7 @@ /* any intervening fileno() calls could decr this refcnt */ if (!(o = PyList_GetItem(list, i))) - return NULL; + return -1; Py_INCREF(o);