aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-12 16:38:14 +0000
committerDan Gohman <gohman@apple.com>2008-05-12 16:38:14 +0000
commitaa8ff759701956536d43028fb9c69b74074831e0 (patch)
treea0213c59ed07bdf01840125d078f3cfc5643f307 /lib/Support/APFloat.cpp
parentbfabd84a843bdaa67489beeb1fdaa23fd8fb07bc (diff)
downloadexternal_llvm-aa8ff759701956536d43028fb9c69b74074831e0.zip
external_llvm-aa8ff759701956536d43028fb9c69b74074831e0.tar.gz
external_llvm-aa8ff759701956536d43028fb9c69b74074831e0.tar.bz2
Make firstEightPowers const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r--lib/Support/APFloat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index 7d6c4dc..187b108 100644
--- a/lib/Support/APFloat.cpp
+++ b/lib/Support/APFloat.cpp
@@ -438,8 +438,8 @@ namespace {
static unsigned int
powerOf5(integerPart *dst, unsigned int power)
{
- static integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
- 15625, 78125 };
+ static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
+ 15625, 78125 };
static integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };
static unsigned int partsCount[16] = { 1 };