Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 29, 2020
1 parent 5a5a412 commit 33429fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function MA.mutable_operate!(op::Union{typeof(+), typeof(-)}, p::Polynomial,
else
comp = samevars_grlex(p.x.Z[i], z)
if iszero(comp)
MA.operate!(op, p.a[i], coefficient(t))
p.a[i] = MA.operate!(op, p.a[i], coefficient(t))
else
@assert comp < 0
insert!(p.a, i, MA.operate(op, MP.coefficient(t)))
Expand Down

0 comments on commit 33429fe

Please sign in to comment.