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

Unified Diff: runtime/third_party/double-conversion/src/double-conversion.cc

Issue 9001001: Updated to latest double-conversion library version. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | « runtime/third_party/double-conversion/README.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/third_party/double-conversion/src/double-conversion.cc
diff --git a/runtime/third_party/double-conversion/src/double-conversion.cc b/runtime/third_party/double-conversion/src/double-conversion.cc
index 944ddf798eaef829742ff94e6d6f09731913453f..efc1341db2d289063468b2395be52fa10ce311cf 100644
--- a/runtime/third_party/double-conversion/src/double-conversion.cc
+++ b/runtime/third_party/double-conversion/src/double-conversion.cc
@@ -604,7 +604,6 @@ double StringToDoubleConverter::StringToDouble(
int significant_digits = 0;
int insignificant_digits = 0;
bool nonzero_digit_dropped = false;
- bool fractional_part = false;
bool sign = false;
@@ -748,10 +747,8 @@ double StringToDoubleConverter::StringToDouble(
}
}
- // We don't emit a '.', but adjust the exponent instead.
- fractional_part = true;
-
// There is a fractional part.
+ // We don't emit a '.', but adjust the exponent instead.
while (*current >= '0' && *current <= '9') {
if (significant_digits < kMaxSignificantDigits) {
ASSERT(buffer_pos < kBufferSize);
« no previous file with comments | « runtime/third_party/double-conversion/README.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698