We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88437c0 commit fb66ad1Copy full SHA for fb66ad1
trie/ctrie/ctrie.go
@@ -63,8 +63,10 @@ type Ctrie struct {
63
}
64
65
// generation demarcates Ctrie snapshots. We use a heap-allocated reference
66
-// instead of an integer to avoid integer overflows.
67
-type generation struct{}
+// instead of an integer to avoid integer overflows. Struct must have a field
+// on it since two distinct zero-size variables may have the same address in
68
+// memory.
69
+type generation struct{ _ int }
70
71
// iNode is an indirection node. I-nodes remain present in the Ctrie even as
72
// nodes above and below change. Thread-safety is achieved in part by
0 commit comments