mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +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
|
@ -747,7 +747,7 @@ pow5mult(Bigint *b, int k)
|
|||
{
|
||||
Bigint *b1, *p5, *p51;
|
||||
int i;
|
||||
static int p05[3] = { 5, 25, 125 };
|
||||
static const int p05[3] = { 5, 25, 125 };
|
||||
|
||||
if ((i = k & 3)) {
|
||||
b = multadd(b, p05[i-1], 0);
|
||||
|
@ -803,7 +803,7 @@ pow5mult(Bigint *b, int k)
|
|||
{
|
||||
Bigint *b1, *p5, *p51;
|
||||
int i;
|
||||
static int p05[3] = { 5, 25, 125 };
|
||||
static const int p05[3] = { 5, 25, 125 };
|
||||
|
||||
if ((i = k & 3)) {
|
||||
b = multadd(b, p05[i-1], 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue