mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 17:29:11 +02:00
* Exit find if not sorted (bug id 28774)
git-svn-id: trunk@31941 -
This commit is contained in:
parent
08817204a8
commit
aa3a7b7eb8
@ -1390,6 +1390,8 @@ var
|
||||
CompareRes: PtrInt;
|
||||
begin
|
||||
Result := false;
|
||||
if Not Sorted then
|
||||
exit;
|
||||
// Use binary search.
|
||||
L := 0;
|
||||
R := Count - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user