mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 07:34:28 +02:00
* TList<>.Pack() with method pointer parameter already passes Default(T) to the check function, so use R instead of Default(T) in the Pack() overload without method pointer
This commit is contained in:
parent
a7dab71da1
commit
5d65194777
@ -1803,7 +1803,7 @@ begin
|
||||
Pack(
|
||||
function(const L, R: T): Boolean
|
||||
begin
|
||||
Result := FComparer.Compare(L, Default(T)) = 0;
|
||||
Result := FComparer.Compare(L, R) = 0;
|
||||
end);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user