]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120593: Make _PyLong_CompactValue() parameter const again (#122367)
authorVictor Stinner <vstinner@python.org>
Sun, 28 Jul 2024 07:59:07 +0000 (09:59 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Jul 2024 07:59:07 +0000 (09:59 +0200)
commitb359f66c4c315ca14b2a075ee136145ba6610760
treea3e16e0bf4bc0b1f4435434868fe4979601118e4
parentaa449cf063581ea515e2a6194d175f5e1db3d62e
gh-120593: Make _PyLong_CompactValue() parameter const again (#122367)

Change _PyLong_IsCompact() and _PyLong_CompactValue() parameter type
from 'PyObject*' to 'const PyObject*'. Avoid the Py_TYPE() macro
which does not support const parameter.
Include/cpython/longintrepr.h