diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-11-11 22:42:06 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-11 22:42:06 -0800 |
commit | 564a48643bd3edc6da845e458277a54c8068d0e2 (patch) | |
tree | ea483922ae95ef2f1c206aaab2238bf58fd860df /deps/v8/src/conversions.cc | |
parent | d4af8a6b6ac0045620ad6da94e97a71e6e6fad52 (diff) | |
download | node-564a48643bd3edc6da845e458277a54c8068d0e2.tar.gz |
Upgrade V8 to 2.5.6
Diffstat (limited to 'deps/v8/src/conversions.cc')
-rw-r--r-- | deps/v8/src/conversions.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/conversions.cc b/deps/v8/src/conversions.cc index 790e807ae..4cc674485 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 = 20; + const int kMaxDigitsBeforePoint = 21; 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 '.' and the '\0' byte. + // Add space for the '\0' byte. const int kDecimalRepCapacity = - kMaxDigitsBeforePoint + kMaxDigitsAfterPoint + 2; + kMaxDigitsBeforePoint + kMaxDigitsAfterPoint + 1; char decimal_rep[kDecimalRepCapacity]; int decimal_rep_length; bool status = DoubleToAscii(value, DTOA_FIXED, f, |