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 579db8d commit 5ee00d3Copy full SHA for 5ee00d3
Include/cpython/longintrepr.h
@@ -125,9 +125,9 @@ _PyLong_IsCompact(const PyLongObject* op) {
125
}
126
127
static inline int
128
-PyLong_CheckCompact(const PyObject *op)
+PyLong_CheckCompact(PyObject *op)
129
{
130
- return PyLong_CheckExact(op) && _PyLong_IsCompact((PyLongObject *)op);
+ return PyLong_CheckExact(op) && _PyLong_IsCompact((const PyLongObject *)op);
131
132
133
#define PyUnstable_Long_IsCompact _PyLong_IsCompact
0 commit comments