[llvm-commits] [llvm] r50975 - /llvm/trunk/lib/Support/APFloat.cpp
Dan Gohman
gohman at apple.com
Mon May 12 09:38:14 PDT 2008
Author: djg
Date: Mon May 12 11:38:14 2008
New Revision: 50975
URL: http://llvm.org/viewvc/llvm-project?rev=50975&view=rev
Log:
Make firstEightPowers const.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=50975&r1=50974&r2=50975&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Mon May 12 11:38:14 2008
@@ -438,8 +438,8 @@
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 };
More information about the llvm-commits
mailing list