Skip to content

Commit

Permalink
fix: NarrowMode getTotalNum is 0
Browse files Browse the repository at this point in the history
so like 10.0.1-2.0.255
  • Loading branch information
XinRoom committed Nov 4, 2022
1 parent 83f4fdd commit 073ac57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (it *Iter) getTotalNum() uint64 {
case NarrowMode:
var ret = uint64(1)
for _, v := range it.classmate {
ret = ret * uint64(v.e-v.s+1)
ret = ret*uint64(v.e-v.s) + 1
}
return ret
}
Expand Down

0 comments on commit 073ac57

Please sign in to comment.