diff options
author | Victor Stinner <vstinner@python.org> | 2024-09-02 13:23:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 13:23:29 (GMT) |
commit | 10735bff9e097626ea319ac19aab0e16a57729e1 (patch) | |
tree | 6d3877c4c1cfdae35d6a69d13eea1867be2af3fd /Python/generated_cases.c.h | |
parent | b76a4a5db7b4f97942b2cd7027f5a59ce7cbb523 (diff) | |
download | cpython-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/generated_cases.c.h')
-rw-r--r-- | Python/generated_cases.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index dd33404..1488e42 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -5939,7 +5939,7 @@ DEOPT_IF(!PyLong_CheckExact(value), TO_BOOL); STAT_INC(TO_BOOL, hit); if (_PyLong_IsZero((PyLongObject *)value)) { - assert(_Py_IsImmortal(value)); + assert(_Py_IsImmortalLoose(value)); res = Py_False; } else { @@ -5999,7 +5999,7 @@ DEOPT_IF(!PyUnicode_CheckExact(value), TO_BOOL); STAT_INC(TO_BOOL, hit); if (value == &_Py_STR(empty)) { - assert(_Py_IsImmortal(value)); + assert(_Py_IsImmortalLoose(value)); res = Py_False; } else { |