Chromium Code Reviews| Index: test/unittests/wasm/function-body-decoder-unittest.cc |
| diff --git a/test/unittests/wasm/function-body-decoder-unittest.cc b/test/unittests/wasm/function-body-decoder-unittest.cc |
| index ffac2637f1eb3b15a96c7ebdc1e91c2b254a96af..eb559e88fc270913cde9912aca9cde6139eb95cc 100644 |
| --- a/test/unittests/wasm/function-body-decoder-unittest.cc |
| +++ b/test/unittests/wasm/function-body-decoder-unittest.cc |
| @@ -1854,7 +1854,7 @@ TEST_F(FunctionBodyDecoderTest, BreakNesting_6_levels) { |
| int depth = 6; |
| int m = mask; |
| - for (size_t pos = 0; pos < sizeof(code); pos++) { |
| + for (size_t pos = 0; pos < (sizeof(code) - 1); pos++) { |
|
bradnelson
2017/01/09 07:12:32
parens needed?
|
| if (code[pos] != kExprBlock) continue; |
| if (m & 1) { |
| code[pos] = kExprLoop; |