mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
dtoa.c: constified
clang seems to locate never modified local data in the const segment implicitly.
This commit is contained in:
parent
63abb5c227
commit
34d02631e7
1 changed files with 1 additions and 1 deletions
|
@ -842,7 +842,7 @@ pow5mult(Bigint *b, int k)
|
||||||
{
|
{
|
||||||
Bigint *b1, *p5, *p51;
|
Bigint *b1, *p5, *p51;
|
||||||
int i;
|
int i;
|
||||||
static int p05[3] = { 5, 25, 125 };
|
static const int p05[3] = { 5, 25, 125 };
|
||||||
|
|
||||||
if ((i = k & 3) != 0)
|
if ((i = k & 3) != 0)
|
||||||
b = multadd(b, p05[i-1], 0);
|
b = multadd(b, p05[i-1], 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue