Index: src/compiler/representation-change.h |
diff --git a/src/compiler/representation-change.h b/src/compiler/representation-change.h |
index 9538684af2339a20033d12fdad3c45d72872da41..ffb86d16a26709d657296ab749f9ee50716566e0 100644 |
--- a/src/compiler/representation-change.h |
+++ b/src/compiler/representation-change.h |
@@ -75,7 +75,7 @@ class RepresentationChanger { |
return node; // No change necessary. |
case IrOpcode::kInt32Constant: |
if (output_type & kTypeUint32) { |
- uint32_t value = OpParameter<uint32_t>(node); |
+ uint32_t value = static_cast<uint32_t>(OpParameter<int32_t>(node)); |
return jsgraph()->Constant(static_cast<double>(value)); |
} else if (output_type & kTypeInt32) { |
int32_t value = OpParameter<int32_t>(node); |
@@ -125,7 +125,7 @@ class RepresentationChanger { |
DoubleToFloat32(OpParameter<double>(node))); |
case IrOpcode::kInt32Constant: |
if (output_type & kTypeUint32) { |
- uint32_t value = OpParameter<uint32_t>(node); |
+ uint32_t value = static_cast<uint32_t>(OpParameter<int32_t>(node)); |
return jsgraph()->Float32Constant(static_cast<float>(value)); |
} else { |
int32_t value = OpParameter<int32_t>(node); |
@@ -169,7 +169,7 @@ class RepresentationChanger { |
return jsgraph()->Float64Constant(OpParameter<double>(node)); |
case IrOpcode::kInt32Constant: |
if (output_type & kTypeUint32) { |
- uint32_t value = OpParameter<uint32_t>(node); |
+ uint32_t value = static_cast<uint32_t>(OpParameter<int32_t>(node)); |
return jsgraph()->Float64Constant(static_cast<double>(value)); |
} else { |
int32_t value = OpParameter<int32_t>(node); |