diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-08-21 09:31:35 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-08-21 09:31:35 +0200 |
commit | fee78355b480294f28c3c6814953297dca92d4a0 (patch) | |
tree | 4acbb2b6dc7a38d60458a2e27419352793db97f9 | |
parent | c5be5a163c2a7b640cb3d0942de44ec87de0f25b (diff) |
Fixes bug in eattr binary search.
-rw-r--r-- | nest/rt-attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c index de63198e..9d78ce07 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -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; |