We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc724c commit a8af23bCopy full SHA for a8af23b
page.go
@@ -56,7 +56,7 @@ func (p *page) meta() *meta {
56
57
// leafPageElement retrieves the leaf node by index
58
func (p *page) leafPageElement(index uint16) *leafPageElement {
59
- off := uintptr(index) * unsafe.Sizeof(leafPageElement{})
+ off := uintptr(index) * leafPageElementSize
60
return (*leafPageElement)(unsafe.Pointer(uintptr(unsafe.Pointer(p)) + unsafe.Sizeof(*p) + off))
61
}
62
0 commit comments