Skip to content

Commit

Permalink
Merge pull request #156 from jishnub/invoke
Browse files Browse the repository at this point in the history
Use invoke function instead of macro
  • Loading branch information
daanhb authored Mar 1, 2024
2 parents 72dbb5a + 63e2763 commit 8742d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/generic/canonical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ isequaldomain(d1::BaseDomainType, d2::BaseDomainType) = d1 ⊆ d2 && d2 ⊆ d1
hash(d::Domain, h::UInt) = domainhash(simplify(d), h)

domainhash(d) = domainhash(d, zero(UInt))
domainhash(d, h::UInt) = @invoke hash(d::Any, h::UInt)
domainhash(d, h::UInt) = invoke(hash, Tuple{Any,UInt}, d, h)
2 changes: 1 addition & 1 deletion src/maps/map.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ default_isequalmap(m1, m2) = m1===m2

hash(m::AbstractMap, h::UInt) = map_hash(m, h)
map_hash(m) = map_hash(m, zero(UInt))
map_hash(m, h::UInt) = @invoke hash(m::Any, h::UInt)
map_hash(m, h::UInt) = invoke(hash, Tuple{Any,UInt}, m, h)

# Display routines
map_stencil(m, x) = [Display.SymbolObject(m), '(', x, ')']
Expand Down

0 comments on commit 8742d3a

Please sign in to comment.