mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:19:08 +02:00
Codetools: Prevent another range check error. Issue #40922
This commit is contained in:
parent
5914d34e58
commit
03bf02974e
@ -1831,7 +1831,7 @@ begin
|
|||||||
and (IsIdentChar[Source[IdentEnd]]) do
|
and (IsIdentChar[Source[IdentEnd]]) do
|
||||||
inc(IdentEnd);
|
inc(IdentEnd);
|
||||||
|
|
||||||
if not ((Source[IdentStart]='&') and IsIdentStartChar[Source[IdentStart+1]]) then
|
if not ((Source[IdentStart]='&') and (IdentStart<length(Source)) and IsIdentStartChar[Source[IdentStart+1]]) then
|
||||||
while (IdentStart<Position)
|
while (IdentStart<Position)
|
||||||
and (not IsIdentStartChar[Source[IdentStart]]) do
|
and (not IsIdentStartChar[Source[IdentStart]]) do
|
||||||
inc(IdentStart);
|
inc(IdentStart);
|
||||||
|
Loading…
Reference in New Issue
Block a user