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 1545a8d commit 0854952Copy full SHA for 0854952
mypyc/lib-rt/int_ops.c
@@ -608,7 +608,7 @@ CPyTagged CPyTagged_BitLength(CPyTagged self) {
608
PyErr_SetString(PyExc_TypeError, "self must be int");
609
return CPY_INT_TAG;
610
}
611
- int bits = _PyLong_NumBits((PyLongObject *)pyint);
+ int bits = _PyLong_NumBits(pyint);
612
Py_DECREF(pyint);
613
if (bits < 0) {
614
// _PyLong_NumBits sets an error on failure
0 commit comments