Skip to content

Commit 79ff01f

Browse files
committed
Update document.jl
1 parent 0cee4d7 commit 79ff01f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/document.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,22 @@ end
8585
#### parse and free
8686

8787
function parse_file(filename::AbstractString)
88-
ccall((:xmlSubstituteEntitiesDefault, libxml2), Cint, (Cint,), Int(1))
88+
ccall((:xmlSubstituteEntitiesDefault, libxml2), Cint, (Cint,), 1)
8989
p = ccall((:xmlParseFile,libxml2), Xptr, (Cstring,), filename)
9090
p != C_NULL || throw(XMLParseError("Failure in parsing an XML file."))
9191
XMLDocument(p)
9292
end
9393

9494
function parse_file(filename::AbstractString, encoding, options::Integer)
95-
ccall((:xmlSubstituteEntitiesDefault, libxml2), Cint, (Cint,), Int(1))
95+
ccall((:xmlSubstituteEntitiesDefault, libxml2), Cint, (Cint,), 1)
9696
p = ccall((:xmlReadFile,libxml2), Xptr, (Cstring, Ptr{Cchar}, Cint),
9797
filename, encoding, options)
9898
p != C_NULL || throw(XMLParseError("Failure in parsing an XML file."))
9999
XMLDocument(p)
100100
end
101101

102102
function parse_string(s::AbstractString)
103-
ccall((:xmlSubstituteEntitiesDefault, libxml2), Cint, (Cint,), Int(1))
103+
ccall((:xmlSubstituteEntitiesDefault, libxml2), Cint, (Cint,), 1)
104104
p = ccall((:xmlParseMemory,libxml2), Xptr, (Xstr, Cint), s, sizeof(s) + 1)
105105
p != C_NULL || throw(XMLParseError("Failure in parsing an XML string."))
106106
XMLDocument(p)

0 commit comments

Comments
 (0)