Commit 17a01814 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Fix windows build after r24191.

TBR=titzer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24197 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5a49981e
......@@ -273,7 +273,7 @@ TEST(ToFloat32_constant) {
Node* n = r.jsgraph()->Int32Constant(*i);
Node* c = r.changer()->GetRepresentationFor(n, kRepWord32 | kTypeInt32,
kRepFloat32);
r.CheckFloat32Constant(c, *i);
r.CheckFloat32Constant(c, static_cast<float>(*i));
}
}
......@@ -283,7 +283,7 @@ TEST(ToFloat32_constant) {
Node* n = r.jsgraph()->Int32Constant(*i);
Node* c = r.changer()->GetRepresentationFor(n, kRepWord32 | kTypeUint32,
kRepFloat32);
r.CheckFloat32Constant(c, *i);
r.CheckFloat32Constant(c, static_cast<float>(*i));
}
}
}
......@@ -304,7 +304,7 @@ TEST(ToInt32_constant) {
{
FOR_INT32_INPUTS(i) {
if (!IsFloat32Int32(*i)) continue;
Node* n = r.jsgraph()->Float32Constant(*i);
Node* n = r.jsgraph()->Float32Constant(static_cast<float>(*i));
Node* c = r.changer()->GetRepresentationFor(n, kRepFloat32 | kTypeInt32,
kRepWord32);
r.CheckInt32Constant(c, *i);
......@@ -346,7 +346,7 @@ TEST(ToUint32_constant) {
{
FOR_UINT32_INPUTS(i) {
if (!IsFloat32Uint32(*i)) continue;
Node* n = r.jsgraph()->Float32Constant(*i);
Node* n = r.jsgraph()->Float32Constant(static_cast<float>(*i));
Node* c = r.changer()->GetRepresentationFor(n, kRepFloat32 | kTypeUint32,
kRepWord32);
r.CheckUint32Constant(c, *i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment