diff options
author | Mark Shannon <mark@hotpy.org> | 2024-12-20 16:52:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 16:52:20 (GMT) |
commit | 128cc47fbd44e3e09c50d9674fe4a4bba3be450c (patch) | |
tree | 12147152fb9afa9a4dffe14e9f4350dd39f1956c /Python/executor_cases.c.h | |
parent | 78ffba4221dcb2e39fd5db80c297d1777588bb59 (diff) | |
download | cpython-128cc47fbd44e3e09c50d9674fe4a4bba3be450c.zip cpython-128cc47fbd44e3e09c50d9674fe4a4bba3be450c.tar.gz cpython-128cc47fbd44e3e09c50d9674fe4a4bba3be450c.tar.bz2 |
GH-127705: Add debug mode for `_PyStackRef`s inspired by HPy debug mode (GH-128121)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 6e752c5..2233502 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -850,7 +850,7 @@ */ assert(Py_REFCNT(left_o) >= 2); PyStackRef_CLOSE(left); - PyObject *temp = PyStackRef_AsPyObjectBorrow(*target_local); + PyObject *temp = PyStackRef_AsPyObjectSteal(*target_local); PyUnicode_Append(&temp, right_o); *target_local = PyStackRef_FromPyObjectSteal(temp); PyStackRef_CLOSE_SPECIALIZED(right, _PyUnicode_ExactDealloc); |