cell_compare needs to return -2 instead of NULL.

This commit is contained in:
Steven Bethard 2008-03-18 19:03:50 +00:00
parent 5fe5cf6df2
commit b865f05a0f

View 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) {