Fix windows warning.

TBR=svenpanne@chromium.org
BUG=

Review URL: https://codereview.chromium.org/583123003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24076 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
titzer@chromium.org 2014-09-19 10:52:19 +00:00
parent b35db9c63b
commit 9253510f5e

View File

@ -47,8 +47,8 @@ static void TypedArrayLoadHelper(const char* array_type) {
CompilationInfo::kContextSpecializing | CompilationInfo::kTypingEnabled);
for (size_t i = 0; i < arraysize(kValues); ++i) {
for (size_t j = 0; j < arraysize(kValues); ++j) {
volatile U value_a = static_cast<volatile U>(kValues[i]);
volatile U value_b = static_cast<volatile U>(kValues[j]);
volatile U value_a = static_cast<U>(kValues[i]);
volatile U value_b = static_cast<U>(kValues[j]);
double expected =
static_cast<double>(value_a) + static_cast<double>(value_b);
T.CheckCall(T.Val(expected), T.Val(static_cast<double>(i)),
@ -116,8 +116,8 @@ static void TypedArrayStoreHelper(const char* array_type) {
CompilationInfo::kContextSpecializing | CompilationInfo::kTypingEnabled);
for (size_t i = 0; i < arraysize(kValues); ++i) {
for (size_t j = 0; j < arraysize(kValues); ++j) {
volatile U value_a = static_cast<volatile U>(kValues[i]);
volatile U value_b = static_cast<volatile U>(kValues[j]);
volatile U value_a = static_cast<U>(kValues[i]);
volatile U value_b = static_cast<U>(kValues[j]);
double expected =
static_cast<double>(value_a) + static_cast<double>(value_b);
T.CheckCall(T.Val(expected), T.Val(static_cast<double>(i)),