Index: test/unittests/compiler/value-numbering-reducer-unittest.cc |
diff --git a/test/unittests/compiler/value-numbering-reducer-unittest.cc b/test/unittests/compiler/value-numbering-reducer-unittest.cc |
index a97c4aa664afba30c6c7e951c17b78498b298b7b..c003033940024d8ec500e4b9b9fac2e464d979f5 100644 |
--- a/test/unittests/compiler/value-numbering-reducer-unittest.cc |
+++ b/test/unittests/compiler/value-numbering-reducer-unittest.cc |
@@ -73,8 +73,7 @@ TEST_F(ValueNumberingReducerTest, OperatorEqualityNotIdentity) { |
static const size_t kMaxInputCount = 16; |
Node* inputs[kMaxInputCount]; |
for (size_t i = 0; i < arraysize(inputs); ++i) { |
- Operator::Opcode opcode = static_cast<Operator::Opcode>( |
- std::numeric_limits<Operator::Opcode>::max() - i); |
+ Operator::Opcode opcode = static_cast<Operator::Opcode>(kMaxInputCount + i); |
inputs[i] = graph()->NewNode( |
new (zone()) TestOperator(opcode, Operator::kIdempotent, 0, 1)); |
} |
@@ -99,8 +98,7 @@ TEST_F(ValueNumberingReducerTest, SubsequentReductionsYieldTheSameNode) { |
static const size_t kMaxInputCount = 16; |
Node* inputs[kMaxInputCount]; |
for (size_t i = 0; i < arraysize(inputs); ++i) { |
- Operator::Opcode opcode = static_cast<Operator::Opcode>( |
- std::numeric_limits<Operator::Opcode>::max() - i); |
+ Operator::Opcode opcode = static_cast<Operator::Opcode>(2 + i); |
inputs[i] = graph()->NewNode( |
new (zone()) TestOperator(opcode, Operator::kIdempotent, 0, 1)); |
} |