diff --git a/util/histogram.cc b/util/histogram.cc index d052abb33dd32a169c3e202060d9913cb1a6b01b..1e63c39b38860d64b53c9f75575aea787e65d838 100644 --- a/util/histogram.cc +++ b/util/histogram.cc @@ -101,7 +101,7 @@ void HistogramStat::Add(uint64_t value) { // of any operation. Each individual value is atomic and the order of updates // by concurrent threads is tolerable. const size_t index = bucketMapper.IndexForValue(value); - assert(index < num_buckets_ && index >= 0); + assert(index < num_buckets_); buckets_[index].fetch_add(1, std::memory_order_relaxed); uint64_t old_min = min();