We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c37cb23 commit 6b98557Copy full SHA for 6b98557
Objects/longobject.c
@@ -52,6 +52,7 @@ static inline int
52
/// Return 1 if the object is one of the immortal small ints
53
_long_is_small_int(PyObject *op)
54
{
55
+ assert(PyLong_Check(op));
56
PyLongObject *long_object = (PyLongObject *)op;
57
int is_small_int = (long_object->long_value.lv_tag & IMMORTALITY_BIT_MASK) != 0;
58
assert((!is_small_int) || PyLong_CheckExact(op));
0 commit comments