Skip to content

Commit

Permalink
inclusive range
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Aug 15, 2016
1 parent 8356dad commit 4764050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/structs/bitmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (b Bitmap) Clear() {
// on the passed parameter in the passed range
func (b Bitmap) IndexesInRange(set bool, from, to uint) []int {
var indexes []int
for i := from; i < to; i++ {
for i := from; i <= to; i++ {

This comment has been minimized.

Copy link
@camerondavison

camerondavison Aug 16, 2016

Contributor

it looks like this broke TestBitmap

This comment has been minimized.

Copy link
@dadgar

dadgar Aug 16, 2016

Author Contributor

Yeah will look

This comment has been minimized.

Copy link
@dadgar

dadgar Aug 16, 2016

Author Contributor

Fixed

This comment has been minimized.

Copy link
@camerondavison

camerondavison Aug 16, 2016

Contributor

sweet, and there is green checkmarks again.

c := b.Check(i)
if c && set || !c && !set {
indexes = append(indexes, int(i))
Expand Down

0 comments on commit 4764050

Please sign in to comment.