mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 21:49:29 +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;
|
function CompareIntervals(Item1, Item2: Pointer): Integer;
|
||||||
begin
|
begin
|
||||||
|
{$PUSH}{$Q-} // Overflow is allowed to occur
|
||||||
result := Integer({%H-}PtrInt(Item1)-{%H-}PtrInt(Item2));
|
result := Integer({%H-}PtrInt(Item1)-{%H-}PtrInt(Item2));
|
||||||
|
{$POP}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrCSVExportFilter.OnEndPage;
|
procedure TfrCSVExportFilter.OnEndPage;
|
||||||
|
Loading…
Reference in New Issue
Block a user