mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
Fix incorrect constant in reserve.
This commit is contained in:
Vendored
+1
-1
@@ -3538,7 +3538,7 @@ public:
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user