Skip to content

Commit

Permalink
Merge pull request #29 from staticfloat/sf/fix_ambiguity
Browse files Browse the repository at this point in the history
Fix `SymbolRef()` ambiguity on 32-bit platforms
  • Loading branch information
staticfloat authored Dec 16, 2020
2 parents c076117 + b55aabf commit 7797652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Abstract/Symbol.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ SymbolRef(symbols::Symbols, sym::SymtabEntry, idx::UInt32)
Construct a `SymbolRef` object pointing to the given `SymtabEntry`, which
itself represents the `idx`'th symbol within the given `Symbols` collection.
"""
@mustimplement SymbolRef(symbols::Symbols, sym::SymtabEntry, idx::UInt32)
@mustimplement SymbolRef(symbols::Symbols, sym::SymtabEntry, idx)
@mustimplement deref(sym::SymbolRef)

"""
Expand Down Expand Up @@ -240,4 +240,4 @@ function show(io::IO, sym::Union{SymtabEntry{H},SymbolRef{H}}) where {H <: Objec
end
end

show(io::IO, syms::Symbols{H}) where {H <: ObjectHandle} = show_collection(io, syms, H)
show(io::IO, syms::Symbols{H}) where {H <: ObjectHandle} = show_collection(io, syms, H)
2 changes: 1 addition & 1 deletion src/ELF/ELFSymbol.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ function symbol_value(sym::ELFSymbolRef)

# Return our ill-gotten goods
return value
end
end

0 comments on commit 7797652

Please sign in to comment.