LazReport: fix potential overflow in compare function

git-svn-id: trunk@61154 -
This commit is contained in:
martin 2019-05-05 15:35:56 +00:00
parent 4e7db82b52
commit 59d9225b25

View File

@ -75,7 +75,9 @@ end;
function CompareIntervals(Item1, Item2: Pointer): Integer;
begin
{$PUSH}{$Q-} // Overflow is allowed to occur
result := Integer({%H-}PtrInt(Item1)-{%H-}PtrInt(Item2));
{$POP}
end;
procedure TfrCSVExportFilter.OnEndPage;