mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
Merge branch 'master' of https://github.com/greg7mdp/parallel-hashmap
This commit is contained in:
Vendored
+1
-1
@@ -1543,7 +1543,7 @@ public:
|
||||
}
|
||||
// bitor is a faster way of doing `max` here. We will round up to the next
|
||||
// power-of-2-minus-1, so bitor is good enough.
|
||||
auto m = NormalizeCapacity(std::max(n, size()));
|
||||
auto m = NormalizeCapacity((std::max)(n, size()));
|
||||
// n == 0 unconditionally rehashes as per the standard.
|
||||
if (n == 0 || m > capacity_) {
|
||||
resize(m);
|
||||
|
||||
Reference in New Issue
Block a user