Skip to content

Commit

Permalink
简化一处逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
EndlessCheng committed Nov 16, 2020
1 parent 282a2cd commit eeccf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copypasta/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func loopCollection() {
}
has[v] = true
for w := v; w > 0; w &= w - 1 {
f(v &^ (1 << bits.TrailingZeros(w)))
f(v &^ (w & -w))
}
}
//for _, v := range a {
Expand Down

0 comments on commit eeccf06

Please sign in to comment.