Skip to content

Commit 991c098

Browse files
Add back const cast to _PyLong_IsCompact
1 parent 9731dd2 commit 991c098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/cpython/longintrepr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ _PyLong_IsCompact(const PyLongObject* op) {
127127
static inline int
128128
PyLong_CheckCompact(const PyObject *op)
129129
{
130-
return PyLong_CheckExact(op) && _PyLong_IsCompact((PyLongObject *)op);
130+
return PyLong_CheckExact(op) && _PyLong_IsCompact((const PyLongObject *)op);
131131
}
132132

133133
#define PyUnstable_Long_IsCompact _PyLong_IsCompact

0 commit comments

Comments
 (0)