On Sun, Aug 5, 2018 at 6:14 AM Eric Sunshine <[email protected]> wrote: > Having said that, a much easier fix is to use > range_set_append_unsafe() here, and then at the bottom of the loop, > invoke 'sort_and_merge_range_set(out)' to restore range-set invariants
By "bottom", I meant "outside" or "after":
...and then invoke sort_and_merge_range_set()
after the loop to restore range-set invariants.

