From cfee7e88edfc62798306854f37e13534eec78cf6 Mon Sep 17 00:00:00 2001 From: Masahiro Kyuden Date: Thu, 30 Jan 2020 14:59:35 +0900 Subject: [PATCH] Update document https://github.com/moovweb/gokogiri/pull/97 --- xml/document.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/document.go b/xml/document.go index 5645239f..d0986b0c 100644 --- a/xml/document.go +++ b/xml/document.go @@ -327,7 +327,7 @@ func (document *XmlDocument) CreateTextNode(data string) (text *TextNode) { dataPtr := unsafe.Pointer(&dataBytes[0]) nodePtr := C.xmlNewText((*C.xmlChar)(dataPtr)) if nodePtr != nil { - nodePtr.doc = (*_Ctype_struct__xmlDoc)(document.DocPtr()) + nodePtr.doc = (*C.xmlDoc)(document.DocPtr()) text = NewNode(unsafe.Pointer(nodePtr), document).(*TextNode) } return