Skip to content

Commit e4196b1

Browse files
committed
fix invalidations; close issue #403
1 parent ddb9e57 commit e4196b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "Polynomials"
22
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
33
license = "MIT"
44
author = "JuliaMath"
5-
version = "3.1.0"
5+
version = "3.1.1"
66

77
[deps]
88
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function Base.convert(::Type{S}, p::P) where {S <: Number,T, P<:AbstractPolynomi
430430
isconstant(p) && return convert(S, constantterm(p))
431431
throw(ArgumentError("Can't convert a nonconstant polynomial to type $S"))
432432
end
433-
function Base.convert(::Type{T}, p::P) where {T, P<:AbstractPolynomial{T}}
433+
function Base.convert(::Type{T}, p::AbstractPolynomial{T,X}) where {T,X}
434434
isconstant(p) && return constantterm(p)
435435
throw(ArgumentError("Can't convert a nonconstant polynomial to type $S"))
436436
end

0 commit comments

Comments
 (0)