Index: src/list-inl.h |
diff --git a/src/list-inl.h b/src/list-inl.h |
index 143c830ee92ad3d11fe62372dc2a6947557ef8c3..a80aa674341afd94b44e62f438484843f5a1af44 100644 |
--- a/src/list-inl.h |
+++ b/src/list-inl.h |
@@ -166,6 +166,7 @@ void List<T, P>::Clear() { |
template<typename T, class P> |
void List<T, P>::Rewind(int pos) { |
+ ASSERT(0 <= pos && pos <= length_); |
length_ = pos; |
} |