diff --git a/src/hash_table.hpp b/src/hash_table.hpp index e7346b3ea..19c4b40ee 100644 --- a/src/hash_table.hpp +++ b/src/hash_table.hpp @@ -206,7 +206,9 @@ void CaseInsensitiveHashTable::add_index(T* entry) { template void CaseInsensitiveHashTable::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(capacity / CASS_LOAD_FACTOR) + 1); std::fill(index_.begin(), index_.end(), static_cast(NULL)); // Clear the old entries index_.resize(index_capacity);