summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Bethard <steven.bethard@gmail.com>2008-03-18 19:03:50 (GMT)
committerSteven Bethard <steven.bethard@gmail.com>2008-03-18 19:03:50 (GMT)
commitb865f05a0f3eed342c54c4cf55c1281124f15484 (patch)
tree4a3aaf42f8eca19c03773599649480e9a859dc89
parent5fe5cf6df20607033096c05d68cef7222a35697c (diff)
downloadcpython-b865f05a0f3eed342c54c4cf55c1281124f15484.zip
cpython-b865f05a0f3eed342c54c4cf55c1281124f15484.tar.gz
cpython-b865f05a0f3eed342c54c4cf55c1281124f15484.tar.bz2
cell_compare needs to return -2 instead of NULL.
-rw-r--r--Objects/cellobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/cellobject.c b/Objects/cellobject.c
index 37cde41..2286aaf 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) {