mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-15 12:18:11 -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:
+2
-2
@@ -204,8 +204,8 @@ package caps
|
||||
|
||||
|
||||
numCapabs = len(CAPDEFS)
|
||||
bitsetLen = numCapabs // 64
|
||||
if numCapabs % 64 > 0:
|
||||
bitsetLen = numCapabs // 32
|
||||
if numCapabs % 32 > 0:
|
||||
bitsetLen += 1
|
||||
print ("""
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user