gh-123091: Use _Py_IsImmortalLoose() (#123511)
Use _Py_IsImmortalLoose() in bytesobject.c, typeobject.c and ceval.c.
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user