summaryrefslogtreecommitdiffstats
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-10-10 17:19:08 (GMT)
committerGitHub <noreply@github.com>2024-10-10 17:19:08 (GMT)
commitc9014374c50d6ef64786d3e7d9c7e99053d5c9e2 (patch)
tree0aa842abbebaa90dfbafe985f2ab1fb5688ce45f /Python/generated_cases.c.h
parent01fc3b34cc6994bc83b6540da3a8573e79dfbb56 (diff)
downloadcpython-c9014374c50d6ef64786d3e7d9c7e99053d5c9e2.zip
cpython-c9014374c50d6ef64786d3e7d9c7e99053d5c9e2.tar.gz
cpython-c9014374c50d6ef64786d3e7d9c7e99053d5c9e2.tar.bz2
GH-125174: Make immortal objects more robust, following design from PEP 683 (GH-125251)
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 7656ce6..7023aea 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -7840,7 +7840,7 @@
DEOPT_IF(!PyLong_CheckExact(value_o), TO_BOOL);
STAT_INC(TO_BOOL, hit);
if (_PyLong_IsZero((PyLongObject *)value_o)) {
- assert(_Py_IsImmortalLoose(value_o));
+ assert(_Py_IsImmortal(value_o));
res = PyStackRef_False;
}
else {
@@ -7902,7 +7902,7 @@
DEOPT_IF(!PyUnicode_CheckExact(value_o), TO_BOOL);
STAT_INC(TO_BOOL, hit);
if (value_o == &_Py_STR(empty)) {
- assert(_Py_IsImmortalLoose(value_o));
+ assert(_Py_IsImmortal(value_o));
res = PyStackRef_False;
}
else {