* fixed overallocation of buckets in T(Tag)HashSet after resize

git-svn-id: trunk@32043 -
This commit is contained in:
Jonas Maebe 2015-10-13 15:58:57 +00:00
parent 192bb3e032
commit dff35e7d03

View File

@ -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];