Browse Source

* Fix format

michael 5 years ago
parent
commit
e8804d29c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/sysutils.pas

+ 1 - 1
packages/rtl/sysutils.pas

@@ -2421,7 +2421,7 @@ Var ChPos,OldPos,ArgPos,DoArg,Len : SizeInt;
   }
   }
   begin
   begin
     result:=false;
     result:=false;
-    if Index=-1 then
+    if Index=High(Byte) then
       DoArg:=Argpos
       DoArg:=Argpos
     else
     else
       DoArg:=Index;
       DoArg:=Index;