Skip to content

Commit 243cc9a

Browse files
Update int_ops.c
1 parent 37c6109 commit 243cc9a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

mypyc/lib-rt/int_ops.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,6 @@ CPyTagged CPyTagged_BitLength(CPyTagged self) {
637637

638638
// Slow path for big ints
639639
PyObject *pyint = CPyTagged_StealAsObject(self);
640-
if (!PyLong_Check(pyint)) {
641-
Py_DECREF(pyint);
642-
PyErr_SetString(PyExc_TypeError, "self must be int");
643-
return CPY_INT_TAG;
644-
}
645640
int bits = _PyLong_NumBits(pyint);
646641
Py_DECREF(pyint);
647642
if (bits < 0) {

0 commit comments

Comments
 (0)