mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 00:24:00 +00:00
Make sure the size is doubled (not 4x).
llvm-svn: 94845
This commit is contained in:
parent
a6a8be8712
commit
4d7286efef
@ -359,7 +359,7 @@ private:
|
||||
BucketT *OldBuckets = Buckets;
|
||||
|
||||
// Double the number of buckets.
|
||||
while (NumBuckets <= AtLeast)
|
||||
while (NumBuckets < AtLeast)
|
||||
NumBuckets <<= 1;
|
||||
NumTombstones = 0;
|
||||
Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT)*NumBuckets));
|
||||
|
Loading…
x
Reference in New Issue
Block a user