Added nocheckptr annotation

This commit is contained in:
tidwall 2020-10-27 08:46:24 -07:00
parent 6cd427091e
commit 32188eeb08
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ type treeItem struct {
item interface{} item interface{}
} }
//go:nocheckptr
func (item *treeItem) unsafeNode() *treeNode { func (item *treeItem) unsafeNode() *treeNode {
return (*treeNode)(unsafe.Pointer(item)) return (*treeNode)(unsafe.Pointer(item))
} }