Revision: 4340
Author: [email protected]
Date: Mon Apr  5 01:03:45 2010
Log: Updating a comment in InternalStringToInt.
Review URL: http://codereview.chromium.org/1547017
http://code.google.com/p/v8/source/detail?r=4340

Modified:
 /branches/bleeding_edge/src/conversions.cc

=======================================
--- /branches/bleeding_edge/src/conversions.cc  Wed Mar 31 10:19:05 2010
+++ /branches/bleeding_edge/src/conversions.cc  Mon Apr  5 01:03:45 2010
@@ -357,9 +357,10 @@
     return sign ? -gay_strtod(buffer, NULL) : gay_strtod(buffer, NULL);
   }

-  // TODO(serya): The following legacy code causes accumulating rounding
-  // error for number greater than ~2^56. It should be rewritten using long
-  // arithmetic.
+ // The following code causes accumulating rounding error for numbers greater + // than ~2^56. It's explicitly allowed in the spec: "if R is not 2, 4, 8, 10, + // 16, or 32, then mathInt may be an implementation-dependent approximation to
+  // the mathematical integer value" (15.1.2.2).

   int lim_0 = '0' + (radix < 10 ? radix : 10);
   int lim_a = 'a' + (radix - 10);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

To unsubscribe, reply using "remove me" as the subject.

Reply via email to