Index: src/vector.h |
diff --git a/src/vector.h b/src/vector.h |
index d120dfc4ac70c36ff9cbc7340546b356f529babd..080f89e9f4c3715d007f4e6fb82ffe4699abb3ee 100644 |
--- a/src/vector.h |
+++ b/src/vector.h |
@@ -51,7 +51,8 @@ class Vector { |
// Access individual vector elements - checks bounds in debug mode. |
T& operator[](int index) const { |
- DCHECK(0 <= index && index < length_); |
+ DCHECK_LE(0, index); |
+ DCHECK_LT(index, length_); |
return start_[index]; |
} |