Skip to content

Commit 84d1c69

Browse files
committed
Merge pull request #25 from KristofferC/master
Fix 0.4 deprecation
2 parents b7149bd + 8e0d160 commit 84d1c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/document.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function save_file(xdoc::XMLDocument, filename::String; encoding::String="utf-8"
105105
if ret < 0
106106
throw(XMLWriteError("Failed to save XML to file $filename"))
107107
end
108-
return int(ret) # number of bytes written
108+
return @compat Int(ret) # number of bytes written
109109
end
110110

111111
function Base.string(xdoc::XMLDocument; encoding::String="utf-8")

0 commit comments

Comments
 (0)