Skip to content

Commit 0854952

Browse files
committed
fix c
1 parent 1545a8d commit 0854952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/lib-rt/int_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ CPyTagged CPyTagged_BitLength(CPyTagged self) {
608608
PyErr_SetString(PyExc_TypeError, "self must be int");
609609
return CPY_INT_TAG;
610610
}
611-
int bits = _PyLong_NumBits((PyLongObject *)pyint);
611+
int bits = _PyLong_NumBits(pyint);
612612
Py_DECREF(pyint);
613613
if (bits < 0) {
614614
// _PyLong_NumBits sets an error on failure

0 commit comments

Comments
 (0)