]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
cell_compare needs to return -2 instead of NULL.
authorSteven Bethard <steven.bethard@gmail.com>
Tue, 18 Mar 2008 19:03:50 +0000 (19:03 +0000)
committerSteven Bethard <steven.bethard@gmail.com>
Tue, 18 Mar 2008 19:03:50 +0000 (19:03 +0000)
Objects/cellobject.c

index 37cde41da11d39776561e157e701c2a8636987c5..2286aafc2b1e1dbe83e32be0c3aacc534c44c4dd 100644 (file)
@@ -57,7 +57,7 @@ cell_compare(PyCellObject *a, PyCellObject *b)
        /* Py3K warning for comparisons  */
        if (Py_Py3kWarningFlag && PyErr_Warn(PyExc_DeprecationWarning,
                        "cell comparisons not supported in 3.x.") < 0) {
-               return NULL;
+               return -2;
        }
 
        if (a->ob_ref == NULL) {