We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c8c0c8 commit 74d44b5Copy full SHA for 74d44b5
bit32.go
@@ -7,7 +7,7 @@ import (
7
const bitCount = 32
8
9
func trim(x uint) uint { return x & math.MaxUint32 }
10
-func mask(n uint) uint { return ^((math.MaxUint32 << (n - 1)) << 1) }
+func mask(n uint) uint { return ^(math.MaxUint32 << n) }
11
12
func shift(l *State, r uint, i int) int {
13
if i < 0 {
0 commit comments