Skip to content

Commit c8212d1

Browse files
authored
Use terms explicitly in conj (#301)
1 parent bc7af47 commit c8212d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/complex.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function Base.conj(x::T) where {T<:AbstractTerm}
171171
end
172172
function Base.conj(x::P) where {P<:AbstractPolynomial}
173173
return iszero(x) || isreal(x) ? MA.copy_if_mutable(x) :
174-
convert(P, polynomial([conj(t) for t in x]))
174+
convert(P, polynomial([conj(t) for t in terms(x)]))
175175
end
176176

177177
# Real and imaginary parts are harder to realize. The real part of a monomial can easily be a polynomial.

0 commit comments

Comments
 (0)