Skip to content

Commit

Permalink
Merge pull request #16 from daschw/fix1.0
Browse files Browse the repository at this point in the history
copy! -> copyto!
  • Loading branch information
daschw authored Aug 27, 2018
2 parents 6cb32a2 + 044b6bb commit 0b95f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ function blurdiff(A::AbstractArray, B::AbstractArray, sigma)
if size(A) != size(B)
newsize = map(max, size(A), size(B))
if size(A) != newsize
A = copy!(zeros(eltype(A), newsize...), A)
A = copyto!(zeros(eltype(A), newsize...), A)
end
if size(B) != newsize
B = copy!(zeros(eltype(B), newsize...), B)
B = copyto!(zeros(eltype(B), newsize...), B)
end
end

Expand Down

0 comments on commit 0b95f93

Please sign in to comment.