Skip to content

Commit b27f892

Browse files
committed
tweak for genericness
1 parent 05977a0 commit b27f892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ Base.setindex!(p::AbstractPolynomial, values, ::Colon) =
477477

478478
#=
479479
identity =#
480-
Base.copy(p::P) where {P <: AbstractPolynomial} = _convert(p, copy(p.coeffs))
480+
Base.copy(p::P) where {P <: AbstractPolynomial} = _convert(p, copy(coeffs(p)))
481481
Base.hash(p::AbstractPolynomial, h::UInt) = hash(p.var, hash(coeffs(p), h))
482482

483483
#=

0 commit comments

Comments
 (0)