| Index: src/compiler/machine-node-factory.h
|
| diff --git a/src/compiler/machine-node-factory.h b/src/compiler/machine-node-factory.h
|
| index 3a7b94797d763771b68900722ad9990575f26db5..5a6ce27e33a20af4cffd72a85e9ccef590418966 100644
|
| --- a/src/compiler/machine-node-factory.h
|
| +++ b/src/compiler/machine-node-factory.h
|
| @@ -64,7 +64,8 @@ class MachineNodeFactory {
|
| }
|
| Node* IntPtrConstant(intptr_t value) {
|
| // TODO(dcarney): mark generated code as unserializable if value != 0.
|
| - return kPointerSize == 8 ? Int64Constant(value) : Int32Constant(value);
|
| + return kPointerSize == 8 ? Int64Constant(value)
|
| + : Int32Constant(static_cast<int>(value));
|
| }
|
| Node* Int32Constant(int32_t value) {
|
| return NEW_NODE_0(COMMON()->Int32Constant(value));
|
|
|