Index: test/cctest/compiler/test-simplified-lowering.cc |
diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc |
index 19826a0062c69d3d2aaca14394d3d6c55e1a39ec..9f8990529635352a1704b66124ca558f161860c9 100644 |
--- a/test/cctest/compiler/test-simplified-lowering.cc |
+++ b/test/cctest/compiler/test-simplified-lowering.cc |
@@ -372,7 +372,7 @@ TEST(RunLoadElementFromUntaggedBase) { |
Smi::FromInt(4), Smi::FromInt(5)}; |
for (size_t i = 0; i < ARRAY_SIZE(smis); i++) { // for header sizes |
- for (size_t j = i; j < ARRAY_SIZE(smis); j++) { // for element index |
+ for (size_t j = 0; (i + j) < ARRAY_SIZE(smis); j++) { // for element index |
int offset = static_cast<int>(i * sizeof(Smi*)); |
ElementAccess access = {kUntaggedBase, offset, Type::Integral32(), |
kMachineTagged}; |
@@ -400,7 +400,7 @@ TEST(RunStoreElementFromUntaggedBase) { |
Smi::FromInt(4), Smi::FromInt(5)}; |
for (size_t i = 0; i < ARRAY_SIZE(smis); i++) { // for header sizes |
- for (size_t j = i; j < ARRAY_SIZE(smis); j++) { // for element index |
+ for (size_t j = 0; (i + j) < ARRAY_SIZE(smis); j++) { // for element index |
int offset = static_cast<int>(i * sizeof(Smi*)); |
ElementAccess access = {kUntaggedBase, offset, Type::Integral32(), |
kMachineTagged}; |