Parcourir la source

* Fix bug ID #36425

git-svn-id: trunk@43678 -
michael il y a 6 ans
Parent
commit
0b9b002807
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;