Index: runtime/third_party/double-conversion/src/cached-powers.cc |
diff --git a/runtime/third_party/double-conversion/src/cached-powers.cc b/runtime/third_party/double-conversion/src/cached-powers.cc |
index d1359ffe43e9935fcd18ed3b7df7d60f04fdac7e..2b43f06412777509a8100ae591d84065af626e47 100644 |
--- a/runtime/third_party/double-conversion/src/cached-powers.cc |
+++ b/runtime/third_party/double-conversion/src/cached-powers.cc |
@@ -131,7 +131,6 @@ static const CachedPower kCachedPowers[] = { |
{UINT64_2PART_C(0xaf87023b, 9bf0ee6b), 1066, 340}, |
}; |
-static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers); |
static const int kCachedPowersOffset = 348; // -1 * the first decimal_exponent. |
static const double kD_1_LOG2_10 = 0.30102999566398114; // 1 / lg(10) |
// Difference between the decimal exponents in the table above. |
@@ -149,7 +148,7 @@ void PowersOfTenCache::GetCachedPowerForBinaryExponentRange( |
int foo = kCachedPowersOffset; |
int index = |
(foo + static_cast<int>(k) - 1) / kDecimalExponentDistance + 1; |
- ASSERT(0 <= index && index < kCachedPowersLength); |
+ ASSERT(0 <= index && index < static_cast<int>(ARRAY_SIZE(kCachedPowers))); |
CachedPower cached_power = kCachedPowers[index]; |
ASSERT(min_exponent <= cached_power.binary_exponent); |
(void) max_exponent; // Mark variable as used. |