mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
gh-123091: Use _Py_IsImmortalLoose() (#123511)
Use _Py_IsImmortalLoose() in bytesobject.c, typeobject.c and ceval.c.
This commit is contained in:
parent
22fdb8cf89
commit
f1a0d96f41
7 changed files with 17 additions and 17 deletions
4
Python/executor_cases.c.h
generated
4
Python/executor_cases.c.h
generated
|
@ -390,7 +390,7 @@
|
|||
}
|
||||
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 {
|
||||
|
@ -443,7 +443,7 @@
|
|||
}
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue