mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-08 11:01:34 +01:00
codetools: fixed range check error
git-svn-id: trunk@38419 -
This commit is contained in:
parent
4cf053d2ba
commit
859caab881
@ -8757,7 +8757,7 @@ begin
|
||||
//debugln(['TFindDeclarationTool.GetCurrentAtomType ',CurPos.StartPos,' ',CurPos.EndPos,' ',SrcLen,' ',GetAtom]);
|
||||
if (CurPos.StartPos=CurPos.EndPos) then
|
||||
Result:=vatSpace
|
||||
else if (CurPos.StartPos>SrcLen) then
|
||||
else if (CurPos.StartPos<1) or (CurPos.StartPos>SrcLen) then
|
||||
Result:=vatNone
|
||||
else if IsIdentStartChar[Src[CurPos.StartPos]] then begin
|
||||
if WordIsPredefinedIdentifier.DoItCaseInsensitive(Src,CurPos.StartPos,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user