Fixes bug in eattr binary search.
This commit is contained in:
parent
c5be5a163c
commit
fee78355b4
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ ea__find(ea_list *e, unsigned id)
|
|||
if (e->flags & EALF_BISECT)
|
||||
{
|
||||
l = 0;
|
||||
r = e->count + 1;
|
||||
r = e->count - 1;
|
||||
while (l <= r)
|
||||
{
|
||||
m = (l+r) / 2;
|
||||
|
|
Loading…
Reference in a new issue