aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Support/APFloat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index feb2599..d7f0d82 100644
--- a/lib/Support/APFloat.cpp
+++ b/lib/Support/APFloat.cpp
@@ -439,12 +439,12 @@ powerOf5(integerPart *dst, unsigned int power)
{
static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
15625, 78125 };
- integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };
+ integerPart pow5s[maxPowerOfFiveParts * 2 + 5];
+ pow5s[0] = 78125 * 5;
+
unsigned int partsCount[16] = { 1 };
-
integerPart scratch[maxPowerOfFiveParts], *p1, *p2, *pow5;
unsigned int result;
-
assert(power <= maxExponent);
p1 = dst;