Browse Source

* Fix stringofchar for count<=0

michael 6 years ago
parent
commit
fd98459d58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/system.pas

+ 1 - 1
packages/rtl/system.pas

@@ -603,7 +603,7 @@ var
   i: Integer;
 begin
   asm
-    if (c.repeat) return c.repeat(l);
+    if ((l>0) && c.repeat) return c.repeat(l);
   end;
   Result:='';
   for i:=1 to l do Result:=Result+c;