Index: src/compiler/generic-node-inl.h |
diff --git a/src/compiler/generic-node-inl.h b/src/compiler/generic-node-inl.h |
index 9dd3dd1e8ea42d946732c17c8a1d0dd57d3d6f85..bcf6ccfbe15cb449bd740996275a71eab9a57977 100644 |
--- a/src/compiler/generic-node-inl.h |
+++ b/src/compiler/generic-node-inl.h |
@@ -217,7 +217,7 @@ S* GenericNode<B, S>::New(GenericGraphBase* graph, int input_count, |
size_t node_size = sizeof(GenericNode); |
size_t inputs_size = input_count * sizeof(Input); |
size_t uses_size = input_count * sizeof(Use); |
- size_t size = node_size + inputs_size + uses_size; |
+ int size = static_cast<int>(node_size + inputs_size + uses_size); |
Zone* zone = graph->zone(); |
void* buffer = zone->New(size); |
S* result = new (buffer) S(graph, input_count); |