IDE: Prevent range check error in all compiler options parser.

git-svn-id: trunk@42399 -
This commit is contained in:
juha 2013-08-14 22:37:20 +00:00
parent b7410e5152
commit d5fea9e70b

View File

@ -744,7 +744,7 @@ begin
begin
Start := i;
if aOptStr[i] in ['0'..'9'] then
while (aOptStr[i] in ['0'..'9']) and (i <= Length(aOptStr)) do
while (i <= Length(aOptStr)) and (aOptStr[i] in ['0'..'9']) do
Inc(i)
else
Inc(i);