Commit 34922793 authored by Dhruv Matani's avatar Dhruv Matani Committed by Sara Golemon

Replace CHECK_GT with DCHECK_GT in folly::Range::operator[]

Summary: Since I don't want to pay the cost when we access array elements. If I did, I would just use Java.

Test Plan: fbconfig folly/test/ && fbmake runtests

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D1158505
parent 9afa70a2
...@@ -323,12 +323,12 @@ public: ...@@ -323,12 +323,12 @@ public:
} }
value_type& operator[](size_t i) { value_type& operator[](size_t i) {
CHECK_GT(size(), i); DCHECK_GT(size(), i);
return b_[i]; return b_[i];
} }
const value_type& operator[](size_t i) const { const value_type& operator[](size_t i) const {
CHECK_GT(size(), i); DCHECK_GT(size(), i);
return b_[i]; return b_[i];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment