Going to need the iterator.

This commit is contained in:
Neil 2023-02-04 19:29:40 -08:00
parent 2fd07c2329
commit fbabdf9810

View File

@ -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;
} }