mirror of https://github.com/tidwall/rtred.git
Added nocheckptr annotation
This commit is contained in:
parent
6cd427091e
commit
32188eeb08
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue