aboutsummaryrefslogtreecommitdiffstats
path: root/missing
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-10 16:32:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-10 16:42:36 +0900
commit34d02631e71209b12abb69d0114601027e485bc9 (patch)
tree9406f0cd46d3f164a000ba6aa1859b5f2250fb6b /missing
parent63abb5c227e5c20d18d0debf699251da93ca64b5 (diff)
downloadruby-34d02631e71209b12abb69d0114601027e485bc9.tar.gz
dtoa.c: constified
clang seems to locate never modified local data in the const segment implicitly.
Diffstat (limited to 'missing')
-rw-r--r--missing/dtoa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/missing/dtoa.c b/missing/dtoa.c
index 6d9108710c..6c0d2b8831 100644
--- a/missing/dtoa.c
+++ b/missing/dtoa.c
@@ -842,7 +842,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) != 0)
b = multadd(b, p05[i-1], 0);