mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 10:59:05 +02:00
LazReport: fix potential overflow in compare function
git-svn-id: trunk@61154 -
This commit is contained in:
parent
4e7db82b52
commit
59d9225b25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user