Skip to content

Commit 82173ed

Browse files
committed
Fix compiler warnings
1 parent 5e5db03 commit 82173ed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Include/pythonrun.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ PyAPI_FUNC(void) PyErr_DisplayException(PyObject *);
2121
/* Stuff with no proper home (yet) */
2222
PyAPI_DATA(int) (*PyOS_InputHook)(void);
2323

24-
/* Stack size, in "pointers". This must be large enough, so
25-
* no two calls to check recursion depth are more than this far
24+
/* Stack size, in "pointers". This must be large enough, so
25+
* no two calls to check recursion depth are more than this far
2626
* apart. In practice, that means it must be larger than the C
2727
* stack consumption of PyEval_EvalDefault */
2828
#if defined(Py_DEBUG) && defined(WIN32)

Python/ceval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ _Py_UpdateRecursionLimits(PyThreadState *tstate)
344344
{
345345
char here;
346346
uintptr_t here_addr = (uintptr_t)&here;
347-
int to_probe = PYOS_STACK_MARGIN_BYTES * 2;
348347
#ifdef USE_STACKCHECK
348+
int to_probe = PYOS_STACK_MARGIN_BYTES * 2;
349349
if (tstate->c_stack_top == 0) {
350350
assert(tstate->c_stack_soft_limit == UINTPTR_MAX);
351351
tstate->c_stack_top = _Py_SIZE_ROUND_UP(here_addr, 4096);
@@ -355,7 +355,7 @@ _Py_UpdateRecursionLimits(PyThreadState *tstate)
355355
int depth;
356356
uintptr_t implicit_hard_limit = tstate->c_stack_soft_limit - PYOS_STACK_MARGIN_BYTES;
357357
_Py_StackProbe(implicit_hard_limit, to_probe, &depth);
358-
tstate->c_stack_soft_limit = implicit_hard_limit - depth + PYOS_STACK_MARGIN_BYTES * 2;
358+
tstate->c_stack_soft_limit = implicit_hard_limit - depth + PYOS_STACK_MARGIN_BYTES * 2;
359359
if (depth != to_probe) {
360360
tstate->c_stack_hard_limit = tstate->c_stack_soft_limit - PYOS_STACK_MARGIN_BYTES;
361361
}

0 commit comments

Comments
 (0)