mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 06:09:39 +02:00
* Merging revisions 43678 from trunk:
------------------------------------------------------------------------ r43678 | michael | 2019-12-12 16:07:46 +0100 (Thu, 12 Dec 2019) | 1 line * Fix bug ID #36425 ------------------------------------------------------------------------ git-svn-id: branches/fixes_3_2@43679 -
This commit is contained in:
parent
f2f4a29dbb
commit
e70f886f55
@ -68,7 +68,7 @@ procedure TStringBuilder.SetLength(AValue: Integer);
|
||||
begin
|
||||
CheckNegative(AValue,'AValue');
|
||||
CheckRange(AValue,0,MaxCapacity);
|
||||
if AValue>Capacity then
|
||||
While AValue>Capacity do
|
||||
Grow;
|
||||
Flength:=AValue;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user