Skip to content

Commit c5d8a40

Browse files
committed
Address remaining review comments
1 parent 2cef96f commit c5d8a40

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Python/pythonrun.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,13 +1534,11 @@ _Py_SourceAsString(PyObject *cmd, const char *funcname, const char *what, PyComp
15341534
/*
15351535
* Return non-zero when we run out of memory on the stack; zero otherwise.
15361536
*/
1537-
int PyOS_CheckStack(void)
1537+
int
1538+
PyOS_CheckStack(void)
15381539
{
15391540
PyThreadState *tstate = _PyThreadState_GET();
1540-
if (_Py_ReachedRecursionLimit(tstate)) {
1541-
return -1;
1542-
}
1543-
return 0;
1541+
return _Py_ReachedRecursionLimit(tstate);
15441542
}
15451543

15461544
#endif /* USE_STACKCHECK */

0 commit comments

Comments
 (0)