Skip to content

Commit

Permalink
close issue JuliaMath#566
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani committed Apr 26, 2024
1 parent 5d4b35f commit 617b288
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "Polynomials"
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
license = "MIT"
author = "JuliaMath"
version = "4.0.7"
version = "4.0.8"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
3 changes: 2 additions & 1 deletion src/rational-functions/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ function Base.convert(::Type{PQ}, p::P) where {PQ <: AbstractRationalFunction, P
T = isnothing(T′) ? eltype(p) : T′
X = indeterminate(PQ, p)

𝐩 = convert(Polynomial{T,X}, p)
𝑃 = Polynomials.:(p)
𝐩 = convert(𝑃{T,X}, p)
rational_function(PQ, 𝐩, one(𝐩))
end

Expand Down

0 comments on commit 617b288

Please sign in to comment.