Skip to content

Commit 2d9164f

Browse files
authored
Fix type piracy with MutableArithmetics (#164)
1 parent 5e22cc4 commit 2d9164f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operators.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ Base.:^(x::AbstractPolynomialLike, p::Integer) = Base.power_by_squaring(x, p)
357357
function MA.mutable_operate_to!(output::AbstractPolynomial, op::MA.AddSubMul, x, args::Vararg{Any, N}) where N
358358
return MA.mutable_operate_to!(output, MA.add_sub_op(op), x, *(args...))
359359
end
360-
function MA.mutable_operate!(op::MA.AddSubMul, x, y, z, args::Vararg{Any, N}) where N
360+
function MA.mutable_operate!(op::MA.AddSubMul, x::AbstractPolynomial, y, z, args::Vararg{Any, N}) where N
361361
return MA.mutable_operate!(MA.add_sub_op(op), x, *(y, z, args...))
362362
end
363363
MA.buffer_for(::MA.AddSubMul, ::Type{<:AbstractPolynomial}, args::Vararg{Type, N}) where {N} = zero(MA.promote_operation(*, args...))

0 commit comments

Comments
 (0)