diff options
author | Mark Shannon <mark@hotpy.org> | 2025-03-20 15:39:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-20 15:39:38 (GMT) |
commit | 7ebd71ee14a497bb5dc7a693dd00f074a9f4831f (patch) | |
tree | 15c6214a266592b9ade709dd45c818a5f972f0a4 /Python/executor_cases.c.h | |
parent | 443c0cd17c5b0c71ee45c3621777454c6b8b0cbd (diff) | |
download | cpython-7ebd71ee14a497bb5dc7a693dd00f074a9f4831f.zip cpython-7ebd71ee14a497bb5dc7a693dd00f074a9f4831f.tar.gz cpython-7ebd71ee14a497bb5dc7a693dd00f074a9f4831f.tar.bz2 |
GH-131498: Remove conditional stack effects (GH-131499)
* Adds some missing #includes
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index ff9f33b..42a3d6d 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -2285,10 +2285,12 @@ } case _PUSH_NULL_CONDITIONAL: { - _PyStackRef null = PyStackRef_NULL; + _PyStackRef *null; oparg = CURRENT_OPARG(); - null = PyStackRef_NULL; - if (oparg & 1) stack_pointer[0] = null; + null = &stack_pointer[0]; + if (oparg & 1) { + null[0] = PyStackRef_NULL; + } stack_pointer += (oparg & 1); assert(WITHIN_STACK_BOUNDS()); break; |