Revision: 13191
Author:   [email protected]
Date:     Tue Dec 11 02:42:10 2012
Log:      Fix windows build.

[email protected]
BUG=

Review URL: https://chromiumcodereview.appspot.com/11538003
http://code.google.com/p/v8/source/detail?r=13191

Modified:
 /branches/bleeding_edge/test/cctest/test-strings.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-strings.cc Tue Dec 11 02:22:15 2012 +++ /branches/bleeding_edge/test/cctest/test-strings.cc Tue Dec 11 02:42:10 2012
@@ -40,7 +40,7 @@
     i = (i + 1) & (kQSize-1);
     uint64_t t = a * Q[i] + c;
     c = (t >> 32);
-    uint32_t x = t + c;
+    uint32_t x = static_cast<uint32_t>(t + c);
     if (x < c) {
       x++;
       c++;
@@ -635,7 +635,7 @@
   // Iterate start search in multiple places in the string.
   int outer_iterations = length > 20 ? 20 : length;
   for (int j = 0; j <= outer_iterations; j++) {
-    int offset = static_cast<double>(length)*j/outer_iterations;
+    int offset = length * j / outer_iterations;
     if (offset < 0) offset = 0;
     // Want to test the offset == length case.
     if (offset > length) offset = length;

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

Reply via email to