Skip to content

Commit b28b230

Browse files
committed
Fix typos
1 parent 7dcdf04 commit b28b230

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Include/internal/pycore_ceval.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ static inline int _Py_MakeRecCheck(PyThreadState *tstate) {
221221
// If it is below the hardware stack base, assume that we have the wrong stack limits, and do nothing.
222222
// We could have the wrong stack limits becuase of limited platform support, or user-space threads.
223223
#if _Py_STACK_GROWS_DOWN
224-
return here_addr < _tstate->c_stack_soft_limit && here_addr >= _tstate->c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES;;
224+
return here_addr < _tstate->c_stack_soft_limit && here_addr >= _tstate->c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES;
225225
#else
226-
return here_addr > _tstate->c_stack_soft_limit && here_addr <= _tstate->c_stack_soft_limit + 2 * _PyOS_STACK_MARGIN_BYTES;;
226+
return here_addr > _tstate->c_stack_soft_limit && here_addr <= _tstate->c_stack_soft_limit + 2 * _PyOS_STACK_MARGIN_BYTES;
227227
#endif
228228
}
229229

InternalDocs/stack_protection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Recursion checks are performed by `_Py_EnterRecursiveCall()` or `_Py_EnterRecurs
3838

3939
```python
4040
kb_used = (stack_top - stack_pointer)>>10
41-
if stack_pointer < bottom_of_machine_stack
42-
pass # Our stack limts could be wrong so it is safest to do nothing.
41+
if stack_pointer < bottom_of_machine_stack:
42+
pass # Our stack limits could be wrong so it is safest to do nothing.
4343
elif stack_pointer < hard_limit:
4444
FatalError(f"Unrecoverable stack overflow (used {kb_used} kB)")
4545
elif stack_pointer < soft_limit:

0 commit comments

Comments
 (0)