Index: cc/scoped_ptr_vector.h |
diff --git a/cc/scoped_ptr_vector.h b/cc/scoped_ptr_vector.h |
index ee1edbbf9f6eb4349b2af2ed344af1ac3b3773de..80f4496dcbceaca641eb573b81a64b8125b76803 100644 |
--- a/cc/scoped_ptr_vector.h |
+++ b/cc/scoped_ptr_vector.h |
@@ -80,7 +80,7 @@ class ScopedPtrVector { |
} |
void insert(size_t index, scoped_ptr<T> item) { |
- DCHECK(index < size()); |
+ DCHECK(index <= size()); |
data_.insert(data_.begin() + index, item.release()); |
} |