Skip to content

Commit 2f927e0

Browse files
committed
address review: simplify assert
1 parent 69d35bd commit 2f927e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/internal/pycore_long.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ _PyLong_HasImmortalTag(const PyLongObject *op)
237237
assert(PyLong_Check(op));
238238
bool is_small_int = (op->long_value.lv_tag & IMMORTALITY_BIT_MASK) != 0;
239239
assert(PyLong_CheckExact(op) || (!is_small_int));
240-
assert((is_small_int && _Py_IsImmortal(op)) || (!is_small_int));
240+
assert(_Py_IsImmortal(op) || (!is_small_int));
241241
return is_small_int;
242242
}
243243

0 commit comments

Comments
 (0)