2
0
Эх сурвалжийг харах

* 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 -

michael 5 жил өмнө
parent
commit
e70f886f55

+ 1 - 1
rtl/objpas/sysutils/syssb.inc

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