Reviewers: Yang,
Description:
Fix double-rounding in strtod for MinGW
Contributed by [email protected]
BUGS=v8:1062
TEST=
Please review this at https://chromiumcodereview.appspot.com/9595012/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/strtod.cc
Index: src/strtod.cc
===================================================================
--- src/strtod.cc (revision 10915)
+++ src/strtod.cc (working copy)
@@ -183,6 +183,9 @@
// Note that the ARM simulator is compiled for 32bits. It therefore
exhibits
// the same problem.
return false;
+#elif defined(V8_TARGET_ARCH_IA32) && defined(__MINGW32__)
+ // MinGW uses 80 bits and exhibits the same problem.
+ return false;
#endif
if (trimmed.length() <= kMaxExactDoubleIntegerDecimalDigits) {
int read_digits;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev