mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 16:19:35 +02:00
* improve TFPSList.Delete as proposed by Alexey Torgashin, resolves #40718
This commit is contained in:
parent
56d84c9283
commit
9a32c00070
@ -607,7 +607,7 @@ begin
|
||||
there. Otherwise, we could accidentally have there a copy of some item
|
||||
on the list, and accidentally Deref it too soon.
|
||||
See http://bugs.freepascal.org/view.php?id=20005. }
|
||||
FillChar(InternalItems[FCount]^, (FCapacity+1-FCount) * FItemSize, #0);
|
||||
FillChar(InternalItems[FCount]^, FItemSize, #0);
|
||||
end;
|
||||
|
||||
procedure TFPSList.DeleteRange(IndexFrom, IndexTo : Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user