Skip to content

Commit

Permalink
Fix: Single line if statment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenick committed Nov 18, 2015
1 parent 40ab3ca commit 50e26c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hash_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ void CaseInsensitiveHashTable<T>::add_index(T* entry) {

template<class T>
void CaseInsensitiveHashTable<T>::reset(size_t capacity) {
if (capacity < entries_.capacity()) capacity = entries_.capacity();
if (capacity < entries_.capacity()) {
capacity = entries_.capacity();
}
size_t index_capacity = next_pow_2(static_cast<size_t>(capacity / CASS_LOAD_FACTOR) + 1);
std::fill(index_.begin(), index_.end(), static_cast<T*>(NULL)); // Clear the old entries
index_.resize(index_capacity);
Expand Down

0 comments on commit 50e26c2

Please sign in to comment.