mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 05:06:03 +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
|
begin
|
||||||
CheckNegative(AValue,'AValue');
|
CheckNegative(AValue,'AValue');
|
||||||
CheckRange(AValue,0,MaxCapacity);
|
CheckRange(AValue,0,MaxCapacity);
|
||||||
if AValue>Capacity then
|
While AValue>Capacity do
|
||||||
Grow;
|
Grow;
|
||||||
Flength:=AValue;
|
Flength:=AValue;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user