Skip to content

Commit 9b4af66

Browse files
authored
close #590; use deepcopy (#591)
1 parent 7d92869 commit 9b4af66

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-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 = "4.0.13"
5+
version = "4.0.14"
66

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

src/polynomials/ngcd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ function refine_uvw!(u::P, v::P, w::P,
540540
Δz = ones(T, length(u) + length(v) + length(w))
541541
n = size(A, 2)
542542
R = UpperTriangular(Matrix{T}(undef, n, n))
543-
R′ = copy(R)
543+
R′ = deepcopy(R)
544544
ũ, ṽ, w̃ = copy(u), copy(v), copy(w)
545545

546546
steps = 0

test/StandardBasis.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,14 @@ end
10191019
@test isempty(out.values)
10201020
@test isempty(out.multiplicities)
10211021
end
1022+
1023+
## past issues
1024+
1025+
## issue #590
1026+
pb = BigInt[-1, 2, -1]
1027+
out = Polynomials.Multroot.multroot(Polynomials.Polynomial(pb))
1028+
@test out.values [1.0] && out.multiplicities == [2]
1029+
10221030
end
10231031

10241032
@testset "critical points" begin

0 commit comments

Comments
 (0)