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

Unified Diff: runtime/vm/double_conversion.cc

Issue 8958018: ToStringAsFixed returns now 0 instead of -0. (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 | « no previous file | tests/co19/co19-runtime.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/double_conversion.cc
diff --git a/runtime/vm/double_conversion.cc b/runtime/vm/double_conversion.cc
index ae9d82e7246364c023daa51a9a51d5ac84ac8592..41cec22002d9df43d1da768f9391c86c30901a9e 100644
--- a/runtime/vm/double_conversion.cc
+++ b/runtime/vm/double_conversion.cc
@@ -55,8 +55,9 @@ bool DoubleToStringAsFixed(double d, int fraction_digits, String& result) {
// The boundaries are exclusive.
static const double kLowerBoundary = -1e21;
static const double kUpperBoundary = 1e21;
+ // TODO(floitsch): remove the UNIQUE_ZERO flag when the test is updated.
static const int kConversionFlags =
- double_conversion::DoubleToStringConverter::NO_FLAGS;
+ double_conversion::DoubleToStringConverter::UNIQUE_ZERO;
const int kBufferSize = 128;
// The output contains the sign, at most kMaxDigitsBeforePoint digits,
// the decimal point followed by at most fraction_digits digits plus the \0.
« no previous file with comments | « no previous file | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698