summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-26 18:11:21 (GMT)
committerGitHub <noreply@github.com>2024-06-26 18:11:21 (GMT)
commite51e880e75d79687b54a71351266e29ee349b4b8 (patch)
tree6fe7cc7fbbd9060f0f01bf83aab0b041834aab51 /Python/executor_cases.c.h
parent9cd2dcbb87fb3c35d8ca3554d9472ac283f62a64 (diff)
downloadcpython-e51e880e75d79687b54a71351266e29ee349b4b8.zip
cpython-e51e880e75d79687b54a71351266e29ee349b4b8.tar.gz
cpython-e51e880e75d79687b54a71351266e29ee349b4b8.tar.bz2
gh-120593: Fix const qualifier in _PyLong_CompactValue() (#121053)
Remove the const qualifier of the argument of functions: * _PyLong_IsCompact() * _PyLong_CompactValue() Py_TYPE() argument is not const. Fix the compiler warning: Include/cpython/longintrepr.h: In function ‘_PyLong_CompactValue’: Include/pyport.h:19:31: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual] (...) Include/cpython/longintrepr.h:133:30: note: in expansion of macro ‘Py_TYPE’ assert(PyType_HasFeature(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS));
Diffstat (limited to 'Python/executor_cases.c.h')
0 files changed, 0 insertions, 0 deletions