Skip to content

Commit eac3c93

Browse files
committed
fix on 32 bit systems
1 parent 96e2510 commit eac3c93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/XML.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ unescape(x::AbstractString) = replace(x, reverse.(escape_chars)...)
2828

2929
mutable struct XMLTokenIterator{IOT <: IO}
3030
io::IOT
31-
start_pos::Int
31+
start_pos::Int64 # position(io) always returns Int64?
3232
buffer::IOBuffer
3333
end
3434
XMLTokenIterator(io::IO) = XMLTokenIterator(io, position(io), IOBuffer())
@@ -230,6 +230,7 @@ Base.setindex!(o::Element, val::Element, i::Integer) = setindex!(children(o), va
230230

231231
Base.getproperty(o::Element, x::Symbol) = attributes(o)[x]
232232
Base.setproperty!(o::Element, x::Symbol, val) = (attributes(o)[x] = string(val))
233+
Base.propertynames(o::Element) = collect(keys(attributes(o)))
233234

234235

235236

0 commit comments

Comments
 (0)