summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-08-30 15:53:50 (GMT)
committerGuido van Rossum <guido@python.org>2000-08-30 15:53:50 (GMT)
commit9c0a99ec1a08793e4cb3bb36efbb1f76823b2e0f (patch)
tree6126bedca29c6c46cc36326e048d7b73a3ece0c6 /Objects/object.c
parenteacc4fc5e6d8f589b1dd42598da2d04ac8b03f8a (diff)
downloadcpython-9c0a99ec1a08793e4cb3bb36efbb1f76823b2e0f.zip
cpython-9c0a99ec1a08793e4cb3bb36efbb1f76823b2e0f.tar.gz
cpython-9c0a99ec1a08793e4cb3bb36efbb1f76823b2e0f.tar.bz2
PyOS_CheckStack() returns 1 when failing, not -1.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 1f02aae..9f73cd3 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -402,7 +402,7 @@ PyObject_Compare(PyObject *v, PyObject *w)
int result;
#if defined(USE_STACKCHECK)
- if (PyOS_CheckStack() < 0) {
+ if (PyOS_CheckStack()) {
PyErr_SetString(PyExc_MemoryError, "Stack overflow");
return -1;
}