summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-07-18 11:47:21 (GMT)
committerGitHub <noreply@github.com>2024-07-18 11:47:21 (GMT)
commit169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b (patch)
tree89b908cb6b3957a88b567dcc4c44b9873865433f /Python/ceval.c
parent24cf867bed6035f33cd3b38d89d303b7522f12a6 (diff)
downloadcpython-169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b.zip
cpython-169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b.tar.gz
cpython-169324c27a39a4d6a4dd7b313b0de6ab2d1f7e6b.tar.bz2
GH-120024: Use pointer for stack pointer (GH-121923)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 026e018..97d4b82 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -764,7 +764,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
#endif
entry_frame.f_executable = Py_None;
entry_frame.instr_ptr = (_Py_CODEUNIT *)_Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS + 1;
- entry_frame.stacktop = 0;
+ entry_frame.stackpointer = entry_frame.localsplus;
entry_frame.owner = FRAME_OWNED_BY_CSTACK;
entry_frame.return_offset = 0;
/* Push frame */