mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -723,7 +723,7 @@ np_void_p(char *p, PyObject *v, const formatdef *f)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static formatdef native_table[] = {
|
||||
static const formatdef native_table[] = {
|
||||
{'x', sizeof(char), 0, NULL},
|
||||
{'b', sizeof(char), 0, nu_byte, np_byte},
|
||||
{'B', sizeof(char), 0, nu_ubyte, np_ubyte},
|
||||
|
@ -2280,7 +2280,7 @@ PyInit__struct(void)
|
|||
|
||||
/* Check endian and swap in faster functions */
|
||||
{
|
||||
formatdef *native = native_table;
|
||||
const formatdef *native = native_table;
|
||||
formatdef *other, *ptr;
|
||||
#if PY_LITTLE_ENDIAN
|
||||
other = lilendian_table;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue