Skip to content

Commit

Permalink
Merge remote-tracking branch 'Blablablanca/hash-consing2' into hash-c…
Browse files Browse the repository at this point in the history
…onsing2
  • Loading branch information
Blablablanca committed Nov 14, 2024
2 parents 0434777 + c8b2f66 commit 3ce0492
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@ function Term{T}(f, args; kw...) where T
end

function Term(f, args; metadata=NO_METADATA)
s = Term{_promote_symtype(f, args)}(f, args, metadata=metadata)
BasicSymbolic(s)
Term{_promote_symtype(f, args)}(f, args, metadata=metadata)
end

function Add(::Type{T}, coeff, dict; metadata=NO_METADATA, kw...) where T
Expand Down Expand Up @@ -508,8 +507,7 @@ function Div{T}(n, d, simplified=false; metadata=nothing) where {T}
end

function Div(n,d, simplified=false; kw...)
s = Div{promote_symtype((/), symtype(n), symtype(d))}(n, d, simplified; kw...)
BasicSymbolic(s)
Div{promote_symtype((/), symtype(n), symtype(d))}(n, d, simplified; kw...)
end

@inline function numerators(x)
Expand Down

0 comments on commit 3ce0492

Please sign in to comment.