This commit is contained in:
Michael McLoughlin
2018-12-30 21:45:35 -08:00
parent 9de1e3573c
commit 5d270d8d76

View File

@@ -71,7 +71,7 @@ func (a Attribute) split() ([]string, Attribute) {
var rest Attribute var rest Attribute
for a != 0 { for a != 0 {
i := uint(bits.TrailingZeros16(uint16(a))) i := uint(bits.TrailingZeros16(uint16(a)))
bit := Attribute(1) << uint(i) bit := Attribute(1) << i
if flag := attrname[bit]; flag != "" { if flag := attrname[bit]; flag != "" {
flags = append(flags, flag) flags = append(flags, flag)
} else { } else {