Skip to content

Commit 3351c72

Browse files
committed
added changes
1 parent 9c1a8f5 commit 3351c72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

skl/arena.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ func (s *Arena) getNode(offset uint32) *node {
111111
if offset == 0 {
112112
return nil
113113
}
114-
return (*node)(unsafe.Pointer(&s.buf[offset]))
114+
ret := (*node)(unsafe.Pointer(&s.buf[offset]))
115+
ret.keyOffset = offset
116+
return ret
115117
}
116118

117119
// getKey returns byte slice at offset.

0 commit comments

Comments
 (0)