summaryrefslogtreecommitdiff
path: root/deps/v8/src/conversions.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-16 19:13:52 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-11-16 19:14:14 -0800
commit03fa258df7d9e642c3ccac82d27c9c8167681cce (patch)
tree09dcbd2f391b2e81c0f50c9e2f37afd94fc1479f /deps/v8/src/conversions.cc
parentcea3a95f9fe6faaa504542d4f03349739d08a0f3 (diff)
downloadnode-new-03fa258df7d9e642c3ccac82d27c9c8167681cce.tar.gz
Revert "Upgrade V8 to 2.5.6"
This reverts commit 564a48643bd3edc6da845e458277a54c8068d0e2. Breaks cygwin
Diffstat (limited to 'deps/v8/src/conversions.cc')
-rw-r--r--deps/v8/src/conversions.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/conversions.cc b/deps/v8/src/conversions.cc
index 4cc6744850..790e807aef 100644
--- a/deps/v8/src/conversions.cc
+++ b/deps/v8/src/conversions.cc
@@ -816,7 +816,7 @@ const char* IntToCString(int n, Vector<char> buffer) {
char* DoubleToFixedCString(double value, int f) {
- const int kMaxDigitsBeforePoint = 21;
+ const int kMaxDigitsBeforePoint = 20;
const double kFirstNonFixed = 1e21;
const int kMaxDigitsAfterPoint = 20;
ASSERT(f >= 0);
@@ -840,9 +840,9 @@ char* DoubleToFixedCString(double value, int f) {
// Find a sufficiently precise decimal representation of n.
int decimal_point;
int sign;
- // Add space for the '\0' byte.
+ // Add space for the '.' and the '\0' byte.
const int kDecimalRepCapacity =
- kMaxDigitsBeforePoint + kMaxDigitsAfterPoint + 1;
+ kMaxDigitsBeforePoint + kMaxDigitsAfterPoint + 2;
char decimal_rep[kDecimalRepCapacity];
int decimal_rep_length;
bool status = DoubleToAscii(value, DTOA_FIXED, f,