Index: src/list-inl.h |
diff --git a/src/list-inl.h b/src/list-inl.h |
index 143c830ee92ad3d11fe62372dc2a6947557ef8c3..7799ca4ccfef44a6a30936ecaa502fd4d480b664 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(pos <= length_); |
length_ = pos; |
} |