Going to need the iterator.
This commit is contained in:
parent
2fd07c2329
commit
fbabdf9810
@ -174,9 +174,8 @@ finally:
|
||||
adding a source, (probably fine.) */
|
||||
const struct source *source_lookup(const struct sources *const s,
|
||||
const union line64 range) {
|
||||
struct source *looked;
|
||||
size_t idx;
|
||||
assert(s);
|
||||
looked = s->list.data + source_tree_left(&s->dates, range);
|
||||
/* verify ... */
|
||||
return looked;
|
||||
idx = source_tree_left(&s->dates, range);
|
||||
return s->list.data + idx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user