Skip to content

Commit 5a9b984

Browse files
authored
Fix ambiguity with buffered operations (#159)
1 parent 09c67e6 commit 5a9b984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/operators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ function MA.mutable_operate!(op::MA.AddSubMul, x, y, z, args::Vararg{Any, N}) wh
358358
return MA.mutable_operate!(MA.add_sub_op(op), x, *(y, z, args...))
359359
end
360360
MA.buffer_for(::MA.AddSubMul, ::Type{<:AbstractPolynomial}, args::Vararg{Type, N}) where {N} = zero(MA.promote_operation(*, args...))
361-
function MA.mutable_buffered_operate_to!(buffer::AbstractPolynomial, output::AbstractPolynomial, op::MA.AddSubMul, x, y, z, args::Vararg{Any, N}) where N
361+
function MA.mutable_buffered_operate_to!(buffer::AbstractPolynomial, output::AbstractPolynomial, op::MA.AddSubMul, x::AbstractPolynomial, y, z, args::Vararg{Any, N}) where N
362362
product = MA.operate_to!(buffer, *, y, z, args...)
363363
return MA.mutable_operate_to!(output, MA.add_sub_op(op), x, product)
364364
end
365-
function MA.mutable_buffered_operate!(buffer::AbstractPolynomial, op::MA.AddSubMul, x, y, z, args::Vararg{Any, N}) where N
365+
function MA.mutable_buffered_operate!(buffer::AbstractPolynomial, op::MA.AddSubMul, x::AbstractPolynomial, y, z, args::Vararg{Any, N}) where N
366366
product = MA.operate_to!(buffer, *, y, z, args...)
367367
return MA.mutable_operate!(MA.add_sub_op(op), x, product)
368368
end

0 commit comments

Comments
 (0)