From 32103ca87002de52e8a11cce4f35579e2eb79e1e Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Tue, 11 Dec 2012 10:42:10 +0000 Subject: [PATCH] Fix windows build. R=dcarney@google.com BUG= Review URL: https://chromiumcodereview.appspot.com/11538003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13191 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-strings.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc index ceadcef..26b7339 100644 --- a/test/cctest/test-strings.cc +++ b/test/cctest/test-strings.cc @@ -40,7 +40,7 @@ class RandomNumberGenerator { 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(t + c); if (x < c) { x++; c++; @@ -635,7 +635,7 @@ static void VerifyCharacterStream( // 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(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; -- 2.7.4