mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:09:27 +02:00
* see also r31267, mantis #28289, change calculation.
git-svn-id: trunk@31381 -
This commit is contained in:
parent
989afc6ecb
commit
5d2a54136a
@ -1257,7 +1257,7 @@ begin
|
|||||||
R := FCount-1;
|
R := FCount-1;
|
||||||
while L<=R do
|
while L<=R do
|
||||||
begin
|
begin
|
||||||
I := (L+R) div 2;
|
I := L + (R - L) div 2;
|
||||||
Dir := FOnKeyPtrCompare(Items[I], AKey);
|
Dir := FOnKeyPtrCompare(Items[I], AKey);
|
||||||
if Dir < 0 then
|
if Dir < 0 then
|
||||||
L := I+1
|
L := I+1
|
||||||
|
Loading…
Reference in New Issue
Block a user