Explorar o código

* 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 %!s(int64=5) %!d(string=hai) anos
pai
achega
e70f886f55
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/objpas/sysutils/syssb.inc

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

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