Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: third_party/double-conversion/src/cached-powers.cc

Issue 2019983002: Roll third_party/double_conversion (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Minor update Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/double-conversion/src/bignum.cc ('k') | third_party/double-conversion/src/double-conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/double-conversion/src/cached-powers.cc
diff --git a/third_party/double-conversion/src/cached-powers.cc b/third_party/double-conversion/src/cached-powers.cc
index 902b86f3af67d9b176f5f0854dac19b153a7149b..2b43f06412777509a8100ae591d84065af626e47 100644
--- a/third_party/double-conversion/src/cached-powers.cc
+++ b/third_party/double-conversion/src/cached-powers.cc
@@ -148,6 +148,7 @@ void PowersOfTenCache::GetCachedPowerForBinaryExponentRange(
int foo = kCachedPowersOffset;
int index =
(foo + static_cast<int>(k) - 1) / kDecimalExponentDistance + 1;
+ 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.
« no previous file with comments | « third_party/double-conversion/src/bignum.cc ('k') | third_party/double-conversion/src/double-conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698