Index: src/compiler/change-lowering.cc |
diff --git a/src/compiler/change-lowering.cc b/src/compiler/change-lowering.cc |
index 3b3998086422500e0962bc9c313d04dbc0af018b..0b4a39952ae69bab681a32ac0d590a986f8ab9cd 100644 |
--- a/src/compiler/change-lowering.cc |
+++ b/src/compiler/change-lowering.cc |
@@ -53,7 +53,7 @@ Node* ChangeLowering::HeapNumberValueIndexConstant() { |
Node* ChangeLowering::SmiMaxValueConstant() { |
const int smi_value_size = machine()->Is32() ? SmiTagging<4>::SmiValueSize() |
: SmiTagging<8>::SmiValueSize(); |
- return jsgraph()->IntPtrConstant( |
+ return jsgraph()->Int32Constant( |
-(static_cast<int>(0xffffffffu << (smi_value_size - 1)) + 1)); |
} |