diff options
Diffstat (limited to 'bnode.go')
-rw-r--r-- | bnode.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15,5 +15,6 @@ type bnode struct { // key returns a byte slice of the node key. func (n *bnode) key() []byte { - return (*[MaxKeySize]byte)(unsafe.Pointer(&n))[n.pos : n.pos+n.ksize] + buf := (*[maxAllocSize]byte)(unsafe.Pointer(n)) + return buf[n.pos : n.pos+n.ksize] } |