aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pyrepl/test_pyrepl.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-26 20:11:21 +0200
committerGitHub <noreply@github.com>2024-06-26 20:11:21 +0200
commite51e880e75d79687b54a71351266e29ee349b4b8 (patch)
tree6fe7cc7fbbd9060f0f01bf83aab0b041834aab51 /Lib/test/test_pyrepl/test_pyrepl.py
parent9cd2dcbb87fb3c35d8ca3554d9472ac283f62a64 (diff)
downloadcpython-e51e880e75d79687b54a71351266e29ee349b4b8.tar.gz
cpython-e51e880e75d79687b54a71351266e29ee349b4b8.zip
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 'Lib/test/test_pyrepl/test_pyrepl.py')
0 files changed, 0 insertions, 0 deletions