Commit fa425e7a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9d40d8d1
......@@ -116,7 +116,7 @@ func (S *RangeSet) AddRange(r Range) {
// and check if we should merge it with right/left neighbours
if ilo+1 < len(S.rangev) { // right
if S.rangev[ilo].hi_ == S.rangev[ilo+1].lo {
if S.rangev[ilo].hi_+1 == S.rangev[ilo+1].lo {
S.rangev = append(
S.rangev[:ilo], append([]Range{
Range{S.rangev[ilo].lo, S.rangev[ilo+1].hi_}},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment