Fix Win64 compilation failure after r23657.

TBR=bmeurer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23660 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8a124e7b
......@@ -213,7 +213,8 @@ void StructuredMachineAssembler::Merge(EnvironmentVector* environments,
vars.reserve(n_vars);
Node** scratch = NULL;
size_t n_envs = environments->size();
Environment** live_environments = zone()->NewArray<Environment*>(n_envs);
Environment** live_environments =
zone()->NewArray<Environment*>(static_cast<int>(n_envs));
size_t n_live = 0;
for (size_t i = 0; i < n_envs; i++) {
if (environments->at(i)->is_dead_) continue;
......@@ -249,7 +250,7 @@ void StructuredMachineAssembler::Merge(EnvironmentVector* environments,
CHECK(resolved != NULL);
// Init scratch buffer.
if (scratch == NULL) {
scratch = zone()->NewArray<Node*>(n_envs);
scratch = zone()->NewArray<Node*>(static_cast<int>(n_envs));
}
for (size_t k = 0; k < i; k++) {
scratch[k] = resolved;
......
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