We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ada166 commit a63b80cCopy full SHA for a63b80c
uhamt.go
@@ -29,10 +29,10 @@ func popCount(i *big.Int) int {
29
}
30
31
func (n *Node) indexForBitPos(bp int) int {
32
- var x uint64
+ var x uint
33
var count, i int
34
w := n.Bitfield.Bits()
35
- for x = uint64(bp); x > 64 && i < len(w); x -= 64 {
+ for x = uint(bp); x > bits.UintSize && i < len(w); x -= bits.UintSize {
36
count += bits.OnesCount64(uint64(w[i]))
37
i++
38
0 commit comments