From 87073abcbdc8953c1d0cba0f49d677e9d1e0c9ee Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 22 Oct 2024 08:38:52 +0200 Subject: [PATCH] Fix the coeff fix --- src/generic/UnivPoly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/UnivPoly.jl b/src/generic/UnivPoly.jl index 79adc9887..2bd519a02 100644 --- a/src/generic/UnivPoly.jl +++ b/src/generic/UnivPoly.jl @@ -315,7 +315,7 @@ function coeff(p::UnivPoly{T}, vars::Vector{Int}, exps::Vector{Int}) where {T} if vars[i] <= num push!(vars2, vars[i]) push!(exps2, exps[i]) - else + elseif exps[i] > 0 return zero(S) end end