Commit 9d40d8d1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6b630059
......@@ -125,7 +125,7 @@ func (S *RangeSet) AddRange(r Range) {
}
if ilo > 0 { // left
if S.rangev[ilo-1].hi_ == S.rangev[ilo].lo {
if S.rangev[ilo-1].hi_+1 == S.rangev[ilo].lo {
S.rangev = append(
S.rangev[:ilo-1], append([]Range{
Range{S.rangev[ilo-1].lo, S.rangev[ilo].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