mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 09:38:50 +01:00
IDE: fixed range check
git-svn-id: trunk@45275 -
This commit is contained in:
parent
c20505c5d5
commit
164e4b9b9f
@ -447,7 +447,7 @@ end;
|
||||
function TSourceMark.CompareEditorAndLine(ASrcEditID: TObject;
|
||||
ALine: integer): integer;
|
||||
begin
|
||||
Result := PtrInt(SourceEditorID) - PtrInt(ASrcEditID);
|
||||
Result := ComparePointers(SourceEditorID,ASrcEditID);
|
||||
if Result <> 0 then Exit;
|
||||
Result := Line - ALine;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user