Skip to content

Commit 33429fe

Browse files
committed
Fix
1 parent 5a5a412 commit 33429fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function MA.mutable_operate!(op::Union{typeof(+), typeof(-)}, p::Polynomial,
108108
else
109109
comp = samevars_grlex(p.x.Z[i], z)
110110
if iszero(comp)
111-
MA.operate!(op, p.a[i], coefficient(t))
111+
p.a[i] = MA.operate!(op, p.a[i], coefficient(t))
112112
else
113113
@assert comp < 0
114114
insert!(p.a, i, MA.operate(op, MP.coefficient(t)))

0 commit comments

Comments
 (0)