From 34922793814187e67ee05bc9f2759362238b1b66 Mon Sep 17 00:00:00 2001 From: Dhruv Matani Date: Tue, 4 Feb 2014 22:15:15 -0800 Subject: [PATCH] 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 --- folly/Range.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/Range.h b/folly/Range.h index 6aba60be..f692b75a 100644 --- a/folly/Range.h +++ b/folly/Range.h @@ -323,12 +323,12 @@ public: } value_type& operator[](size_t i) { - CHECK_GT(size(), i); + DCHECK_GT(size(), i); return b_[i]; } const value_type& operator[](size_t i) const { - CHECK_GT(size(), i); + DCHECK_GT(size(), i); return b_[i]; } -- 2.34.1