Browse Source

* Fix bug ID #36425

git-svn-id: trunk@43678 -
michael 5 years ago
parent
commit
0b9b002807
1 changed files with 1 additions and 1 deletions
  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;