Skip to content

Commit

Permalink
Merge pull request #61 from Coornail/master
Browse files Browse the repository at this point in the history
Fix typo in Bitmap.GetCopyOnWrite() parametering
  • Loading branch information
lemire committed May 14, 2016
2 parents 412e361 + 0424f7e commit db18267
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roaring.go
Original file line number Diff line number Diff line change
Expand Up @@ -1029,13 +1029,13 @@ func Flip(bm *Bitmap, rangeStart, rangeEnd uint64) *Bitmap {
// Set this bitmap to use copy-on-write so that copies are fast and memory conscious
// if the parameter is true, otherwise we leave the default where hard copies are made
// (copy-on-write requires extra care in a threaded context).
func (rb *Bitmap) SetCopyOnWrite(val bool) {
rb.highlowcontainer.copyOnWrite = val
func (rb *Bitmap) SetCopyOnWrite(val bool) {
rb.highlowcontainer.copyOnWrite = val
}

// Get this bitmap's copy-on-write property
func (rb *Bitmap) GetCopyOnWrite(val bool) {
return rb.highlowcontainer.copyOnWrite
func (rb *Bitmap) GetCopyOnWrite() (val bool) {
return rb.highlowcontainer.copyOnWrite
}

// FlipInt calls Flip after casting the parameters (convenience method)
Expand Down

0 comments on commit db18267

Please sign in to comment.