You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several methods (like RemoveRange), take a non-inclusive upper bound that must be 0x100000000 to get the effect of >= begin ([begin, inf]). It would be helpful if this value was exposed, as passing -1, or 0, MaxUint32 or MaxUint64 will not have the desired effect.
Activity
maciej commentedon Feb 5, 2018
@anacrolix I'm sorry, I'm afraid I don't understand you. Could you provide some example code to illustrate the issue?
anacrolix commentedon Feb 6, 2018
If you read https://github.com/RoaringBitmap/roaring/blob/master/roaring.go#L1069 you will see the only way to remove math.MaxUint32 is to pass 0x1000000 as a uint64. This is also pointed out in the method doc. Passing any other value will result in uint32 truncation to a rangeEnd-1 that was not intended.
anacrolix commentedon Feb 6, 2018
That should be
0x100000000. See this:lemire commentedon Feb 6, 2018
I think all we need to do is to check whether the upper range exceeds 0x100000000. I'll prepare a commit.
Fix for #141
lemire commentedon Feb 6, 2018
The following test now passes:
Fix for RoaringBitmap#141