Commit 8c0bbd1e authored by titzer@chromium.org's avatar titzer@chromium.org

Fix windows build.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24181 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 9fb5f564
......@@ -126,10 +126,10 @@ class RepresentationChanger {
case IrOpcode::kInt32Constant:
if (output_type & kTypeUint32) {
uint32_t value = OpParameter<uint32_t>(node);
return jsgraph()->Float32Constant(value);
return jsgraph()->Float32Constant(static_cast<float>(value));
} else {
int32_t value = OpParameter<int32_t>(node);
return jsgraph()->Float32Constant(value);
return jsgraph()->Float32Constant(static_cast<float>(value));
}
case IrOpcode::kFloat32Constant:
return node; // No change necessary.
......
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