From 5d0cf8c1bf9b1482b2393e689975f5acd03719cb Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Mon, 9 Oct 2023 17:23:24 -0400 Subject: [PATCH] Fix incorrect constant in `reserve`. --- include/gtl/phmap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gtl/phmap.hpp b/include/gtl/phmap.hpp index b496118..a9ce231 100644 --- a/include/gtl/phmap.hpp +++ b/include/gtl/phmap.hpp @@ -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); }