mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-05 00:03:36 -07:00
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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user