Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
arodionov53 committed Mar 20, 2024
1 parent a25baad commit 0875d95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1948,9 +1948,12 @@ bool betree_search_with_preds(const struct config* config,


static bool is_id_in(uint64_t id, const uint64_t* ids, size_t sz) {
if (sz == 0) {
return false;
}
size_t first = 0;
size_t last = sz - 1;
if (id < ids[first] || id > ids[last]){
if (id < ids[first] || id > ids[last]) {
return false;
}
size_t middle = (first + last)/2;
Expand Down

0 comments on commit 0875d95

Please sign in to comment.