diff --git a/Objects/object.c b/Objects/object.c index 1f02aaeef99..9f73cd313a2 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; }