mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 22:49:23 +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;
|
CompareRes: PtrInt;
|
||||||
begin
|
begin
|
||||||
Result := false;
|
Result := false;
|
||||||
|
if Not Sorted then
|
||||||
|
exit;
|
||||||
// Use binary search.
|
// Use binary search.
|
||||||
L := 0;
|
L := 0;
|
||||||
R := Count - 1;
|
R := Count - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user