Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ implement a method for [`mutable_copy`](@ref) instead.
copy_if_mutable(x) = copy_if_mutable_fallback(mutability(typeof(x)), x)

function operate_to_fallback!(::IsNotMutable, output, op::Function, args...)
throw(
return throw(
ArgumentError(
"Cannot call `operate_to!(::$(typeof(output)), $op, " *
"::$(join(typeof.(args), ", ::")))` as objects of type " *
Expand Down Expand Up @@ -475,7 +475,7 @@ function buffered_operate_to_fallback!(
op::Function,
args...,
)
throw(
return throw(
ArgumentError(
"Cannot call `buffered_operate_to!(::$(typeof(buffer)), " *
"::$(typeof(output)), $op, ::$(join(typeof.(args), ", ::")))` " *
Expand Down Expand Up @@ -547,7 +547,7 @@ function buffered_operate_fallback!(
op::Function,
args...,
)
throw(
return throw(
ArgumentError(
"Cannot call `buffered_operate!(::$(typeof(buffer)), $op, " *
"::$(join(typeof.(args), ", ::")))` as objects of type " *
Expand Down
2 changes: 1 addition & 1 deletion test/test_basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ end

function test_issue_316_SubArray()
y = reshape([1.0], 1, 1, 1)
Y = view(y,:,:,1)
Y = view(y, :, :, 1)
ret = reshape([1.0], 1, 1)
ret = MA.operate!!(MA.add_mul, ret, 2.0, Y)
@test ret == reshape([3.0], 1, 1)
Expand Down
Loading