mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 02:32:51 +02:00
* fixed overallocation of buckets in T(Tag)HashSet after resize
git-svn-id: trunk@32043 -
This commit is contained in:
parent
192bb3e032
commit
dff35e7d03
@ -2924,7 +2924,7 @@ end;
|
||||
i: Integer;
|
||||
e, n: PHashSetItem;
|
||||
begin
|
||||
p := AllocMem(NewCapacity * SizeOfItem);
|
||||
p := AllocMem(NewCapacity * SizeOf(PHashSetItem));
|
||||
for i := 0 to FBucketCount-1 do
|
||||
begin
|
||||
e := FBucket[i];
|
||||
|
Loading…
Reference in New Issue
Block a user