On Thu, Apr 30, 2020 at 05:14:07PM +0200, Phil Sutter wrote: > Both functions were very similar already. Under the assumption that they > will always either see a range (or start of) that matches exactly or not > at all, reduce complexity and make get_set_interval_find() accept NULL > (left or) right values. This way it becomes a full replacement for > get_set_interval_end(). I have to go back to the commit log of this patch, IIRC my intention here was to allow users to ask for a single element, then return the range that contains it.