Log embellishment

This commit is contained in:
Jae Kwon
2015-07-05 17:07:45 -07:00
parent 7983113024
commit e4435a8d1e
2 changed files with 3 additions and 2 deletions

View File

@ -156,6 +156,7 @@ func (bA *BitArray) Sub(o *BitArray) *BitArray {
i := len(o.Elems) - 1
if i >= 0 {
for idx := i * 64; idx < o.Bits; idx++ {
// NOTE: each individual GetIndex() call to o is safe.
c.setIndex(idx, c.getIndex(idx) && !o.GetIndex(idx))
}
}