mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #25923: Added the const qualifier to static constant arrays.
This commit is contained in:
parent
ea8c43152f
commit
2d06e84455
44 changed files with 139 additions and 134 deletions
|
|
@ -644,7 +644,7 @@ PyObject_Bytes(PyObject *v)
|
|||
/* Map rich comparison operators to their swapped version, e.g. LT <--> GT */
|
||||
int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
|
||||
|
||||
static char *opstrings[] = {"<", "<=", "==", "!=", ">", ">="};
|
||||
static const char * const opstrings[] = {"<", "<=", "==", "!=", ">", ">="};
|
||||
|
||||
/* Perform a rich comparison, raising TypeError when the requested comparison
|
||||
operator is not supported. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue