Chromium Code Reviews| Index: src/list.h |
| diff --git a/src/list.h b/src/list.h |
| index aff63c3828061e5a2480e33fe5b1a3b322b60c15..d3c2767a53bc885f978b88106d6350e9d10d581a 100644 |
| --- a/src/list.h |
| +++ b/src/list.h |
| @@ -68,7 +68,8 @@ class List { |
| // not safe to use after operations that can change the list's |
| // backing store (eg, Add). |
| inline T& operator[](int i) const { |
| - ASSERT(0 <= i && i < length_); |
| + ASSERT(0 <= i); |
| + ASSERT(i < length_); |
| return data_[i]; |
| } |
| inline T& at(int i) const { return operator[](i); } |