summaryrefslogtreecommitdiff
path: root/src/string_search.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_search.h')
-rw-r--r--src/string_search.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/string_search.h b/src/string_search.h
index 358a4c1b02..7d59d89df7 100644
--- a/src/string_search.h
+++ b/src/string_search.h
@@ -37,9 +37,7 @@ class Vector {
// Access individual vector elements - checks bounds in debug mode.
T& operator[](size_t index) const {
-#ifdef DEBUG
- CHECK(index < length_);
-#endif
+ DCHECK_LT(index, length_);
return start_[is_forward_ ? index : (length_ - index - 1)];
}