mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-135379: Add back const cast to _PyLong_IsCompact (GH-135706)
This commit is contained in:
parent
13efe3f599
commit
1b969f6d57
1 changed files with 2 additions and 2 deletions
|
@ -125,9 +125,9 @@ _PyLong_IsCompact(const PyLongObject* op) {
|
|||
}
|
||||
|
||||
static inline int
|
||||
PyLong_CheckCompact(const PyObject *op)
|
||||
PyLong_CheckCompact(PyObject *op)
|
||||
{
|
||||
return PyLong_CheckExact(op) && _PyLong_IsCompact((PyLongObject *)op);
|
||||
return PyLong_CheckExact(op) && _PyLong_IsCompact((const PyLongObject *)op);
|
||||
}
|
||||
|
||||
#define PyUnstable_Long_IsCompact _PyLong_IsCompact
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue