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