commit | d91b9f7d46489a9ee00f9cb415630299c76a502b | [log] [tgz] |
---|---|---|
author | Leon Clarke <leonclarke@google.com> | Wed Jan 27 17:25:45 2010 +0000 |
committer | Leon Clarke <leonclarke@google.com> | Wed Jan 27 17:31:21 2010 +0000 |
tree | 741552f95883bb7461cf7c1d36335cef68804a5b | |
parent | eab96aab0834f21954b5d6aa6366bcfb348ed811 [diff] [blame] |
Merge from v8 at revision 3723
diff --git a/src/list.h b/src/list.h index aff63c3..d3c2767 100644 --- a/src/list.h +++ b/src/list.h
@@ -68,7 +68,8 @@ // 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); }