mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-09 22:09:25 +02:00
* fix for 11099
git-svn-id: trunk@10605 -
This commit is contained in:
parent
2417a02a3b
commit
99c4e92735
@ -58,7 +58,10 @@ Var ChPos,OldPos,ArgPos,DoArg,Len : SizeInt;
|
||||
Procedure ReadIndex;
|
||||
|
||||
begin
|
||||
ReadInteger;
|
||||
If Fmt[ChPos]<>':' then
|
||||
ReadInteger
|
||||
else
|
||||
value:=0; // Delphi undocumented behaviour, assume 0, #11099
|
||||
If Fmt[ChPos]=':' then
|
||||
begin
|
||||
If Value=-1 then DoFormatError(feMissingArgument);
|
||||
|
Loading…
Reference in New Issue
Block a user