Commit 7a488495 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f90c9e7e
...@@ -209,11 +209,12 @@ func (S *RangeSet) verify() { ...@@ -209,11 +209,12 @@ func (S *RangeSet) verify() {
hi_Prev := KeyMin hi_Prev := KeyMin
for i, r := range S.rangev { for i, r := range S.rangev {
if i > 0 && !(hi_Prev < r.lo) { // NOTE not ≤ - adjacent ranges must be merged hiPrev := hi_Prev + 1
badf("[%d]: lo <= hi_Prev", i) if i > 0 && !(hiPrev < r.lo) { // NOTE not ≤ - adjacent ranges must be merged
badf("[%d]: !(hiPrev < r.lo)", i)
} }
if !(r.lo <= r.hi_) { if !(r.lo <= r.hi_) {
badf("[%d]: lo > hi_", i) badf("[%d]: !(r.lo <= r.hi_)", i)
} }
hi_Prev = r.hi_ hi_Prev = r.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