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:
Shivaram Lingamneni 2019-05-27 15:17:28 -04:00
parent bc2e546de9
commit 9fe65223db
5 changed files with 37 additions and 38 deletions

View file

@ -5,7 +5,7 @@ package utils
import "testing"
type testBitset [2]uint64
type testBitset [4]uint32
func TestSets(t *testing.T) {
var t1 testBitset