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 37c6109 commit 243cc9aCopy full SHA for 243cc9a
mypyc/lib-rt/int_ops.c
@@ -637,11 +637,6 @@ CPyTagged CPyTagged_BitLength(CPyTagged self) {
637
638
// Slow path for big ints
639
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
- }
645
int bits = _PyLong_NumBits(pyint);
646
Py_DECREF(pyint);
647
if (bits < 0) {
0 commit comments