forked from External/ergo
fix #527
Use []uint32 in bitset instead of []uint64, because it's harder to guarantee 64-bit alignment of []uint64 than I had realized: https://go101.org/article/memory-layout.html
This commit is contained in:
parent
bc2e546de9
commit
9fe65223db
5 changed files with 37 additions and 38 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
// Set holds a set of enabled capabilities.
|
||||
type Set [bitsetLen]uint64
|
||||
type Set [bitsetLen]uint32
|
||||
|
||||
// NewSet returns a new Set, with the given capabilities enabled.
|
||||
func NewSet(capabs ...Capability) *Set {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue