Skip to content

Commit

Permalink
Fix incorrect constant in reserve.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Oct 9, 2023
1 parent 9c1ce0b commit 5d0cf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gtl/phmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3955,7 +3955,7 @@ class parallel_hash_set {

void reserve(size_t n) {
size_t target = GrowthToLowerboundCapacity(n);
size_t normalized = 16 * NormalizeCapacity(n / num_tables);
size_t normalized = num_tables * NormalizeCapacity(n / num_tables);
rehash(normalized > target ? normalized : target);
}

Expand Down

0 comments on commit 5d0cf8c

Please sign in to comment.