summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-09-02 13:23:29 (GMT)
committerGitHub <noreply@github.com>2024-09-02 13:23:29 (GMT)
commit10735bff9e097626ea319ac19aab0e16a57729e1 (patch)
tree6d3877c4c1cfdae35d6a69d13eea1867be2af3fd /Python/bytecodes.c
parentb76a4a5db7b4f97942b2cd7027f5a59ce7cbb523 (diff)
downloadcpython-10735bff9e097626ea319ac19aab0e16a57729e1.zip
cpython-10735bff9e097626ea319ac19aab0e16a57729e1.tar.gz
cpython-10735bff9e097626ea319ac19aab0e16a57729e1.tar.bz2
[3.13] gh-123091: Use _Py_IsImmortalLoose() (#123511) (#123600)
gh-123091: Use _Py_IsImmortalLoose() (#123511) Use _Py_IsImmortalLoose() in bytesobject.c, typeobject.c and ceval.c. (cherry picked from commit f1a0d96f41db9dfa5d7f0b32e72f6f7301a86f91)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index c222fcd..d953311 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -362,7 +362,7 @@ dummy_func(
EXIT_IF(!PyLong_CheckExact(value));
STAT_INC(TO_BOOL, hit);
if (_PyLong_IsZero((PyLongObject *)value)) {
- assert(_Py_IsImmortal(value));
+ assert(_Py_IsImmortalLoose(value));
res = Py_False;
}
else {
@@ -389,7 +389,7 @@ dummy_func(
EXIT_IF(!PyUnicode_CheckExact(value));
STAT_INC(TO_BOOL, hit);
if (value == &_Py_STR(empty)) {
- assert(_Py_IsImmortal(value));
+ assert(_Py_IsImmortalLoose(value));
res = Py_False;
}
else {