close
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add assert
  • Loading branch information
skirpichev committed Mar 18, 2026
commit 69d35bda593a5f8aafec607c848d0dbfa81a56c1
1 change: 1 addition & 0 deletions Include/internal/pycore_long.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ _PyLong_HasImmortalTag(const PyLongObject *op)
assert(PyLong_Check(op));
bool is_small_int = (op->long_value.lv_tag & IMMORTALITY_BIT_MASK) != 0;
assert(PyLong_CheckExact(op) || (!is_small_int));
assert((is_small_int && _Py_IsImmortal(op)) || (!is_small_int));
Comment thread
colesbury marked this conversation as resolved.
Outdated
return is_small_int;
}

Expand Down
Loading