diff options
author | Victor Stinner <vstinner@python.org> | 2024-09-02 14:25:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 14:25:19 +0200 |
commit | f1a0d96f41db9dfa5d7f0b32e72f6f7301a86f91 (patch) | |
tree | ab17e40e32127f2657a5a47549a418e063a71ac2 /Python/bytecodes.c | |
parent | 22fdb8cf899d2dd29f2ac0bf61309af6809719fb (diff) | |
download | cpython-f1a0d96f41db9dfa5d7f0b32e72f6f7301a86f91.tar.gz cpython-f1a0d96f41db9dfa5d7f0b32e72f6f7301a86f91.zip |
gh-123091: Use _Py_IsImmortalLoose() (#123511)
Use _Py_IsImmortalLoose() in bytesobject.c, typeobject.c
and ceval.c.
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 01e88a34d10..c4cc8127baf 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -374,7 +374,7 @@ dummy_func( EXIT_IF(!PyLong_CheckExact(value_o)); STAT_INC(TO_BOOL, hit); if (_PyLong_IsZero((PyLongObject *)value_o)) { - assert(_Py_IsImmortal(value_o)); + assert(_Py_IsImmortalLoose(value_o)); res = PyStackRef_False; } else { @@ -403,7 +403,7 @@ dummy_func( EXIT_IF(!PyUnicode_CheckExact(value_o)); STAT_INC(TO_BOOL, hit); if (value_o == &_Py_STR(empty)) { - assert(_Py_IsImmortal(value_o)); + assert(_Py_IsImmortalLoose(value_o)); res = PyStackRef_False; } else { |