]> granicus.if.org Git - python/commitdiff
PyOS_CheckStack() returns 1 when failing, not -1.
authorGuido van Rossum <guido@python.org>
Wed, 30 Aug 2000 15:53:50 +0000 (15:53 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 30 Aug 2000 15:53:50 +0000 (15:53 +0000)
Objects/object.c

index 1f02aaeef99ac909eb5a32c759e2783fea78ca66..9f73cd313a2524d4ab37b41574260047e89cf3d9 100644 (file)
@@ -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;
        }