Skip to content

Commit 1de4a56

Browse files
committed
A couple more typos
1 parent 1e7ae53 commit 1de4a56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/internal/pycore_ceval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static inline int _Py_MakeRecCheck(PyThreadState *tstate) {
219219
_PyThreadStateImpl *_tstate = (_PyThreadStateImpl *)tstate;
220220
// Overflow if stack pointer is between soft limit and the base of the hardware stack.
221221
// If it is below the hardware stack base, assume that we have the wrong stack limits, and do nothing.
222-
// We could have the wrong stack limits becuase of limited platform support, or user-space threads.
222+
// We could have the wrong stack limits because of limited platform support, or user-space threads.
223223
#if _Py_STACK_GROWS_DOWN
224224
return here_addr < _tstate->c_stack_soft_limit && here_addr >= _tstate->c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES;
225225
#else

InternalDocs/stack_protection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ elif stack_pointer < soft_limit:
4848

4949
### User space threads and other oddities
5050

51-
Some libraries provide user-space threads. These will change the C stack are runtime.
51+
Some libraries provide user-space threads. These will change the C stack at runtime.
5252
To guard against this we only raise if the stack pointer is in the window between the expected stack base and the soft limit.
5353

5454
### Diagnosing and fixing stack overflows

0 commit comments

Comments
 (0)