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 b6ad902 commit 9f52b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parallel_hashmap/phmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -3538,7 +3538,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 9f52b30

Please sign in to comment.