From: Steven Bethard Date: Tue, 18 Mar 2008 19:03:50 +0000 (+0000) Subject: cell_compare needs to return -2 instead of NULL. X-Git-Tag: v2.6a2~261 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b865f05a0f3eed342c54c4cf55c1281124f15484;p=thirdparty%2FPython%2Fcpython.git cell_compare needs to return -2 instead of NULL. --- diff --git a/Objects/cellobject.c b/Objects/cellobject.c index 37cde41da11d..2286aafc2b1e 100644 --- a/Objects/cellobject.c +++ b/Objects/cellobject.c @@ -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) {