summaryrefslogtreecommitdiff
path: root/Objects/cellobject.c
diff options
context:
space:
mode:
authorSteven Bethard <steven.bethard@gmail.com>2008-03-18 19:03:50 +0000
committerSteven Bethard <steven.bethard@gmail.com>2008-03-18 19:03:50 +0000
commitf65c8e00f7eb30fe057bc55801f9c4e76d6e877b (patch)
tree01f1738e7ac95b7fa13369e83bf84675bd33453d /Objects/cellobject.c
parentb0beddd80b56077ab870791b61c7763ba9ba262f (diff)
downloadcpython-f65c8e00f7eb30fe057bc55801f9c4e76d6e877b.tar.gz
cell_compare needs to return -2 instead of NULL.
Diffstat (limited to 'Objects/cellobject.c')
-rw-r--r--Objects/cellobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/cellobject.c b/Objects/cellobject.c
index 37cde41da1..2286aafc2b 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) {