Skip to content

Commit

Permalink
Update array.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Jan 4, 2025
1 parent 60b2743 commit bb6ed61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Enzyme, Test

function ptrcopy(B, A)
@static if VERSION < v"1.11"
Base.unsafe_copyto!(B, A, 2)
Base.unsafe_copyto!(B, 1, A, 1, 2)
else
Base.unsafe_copyto!(B.ref, A.ref, 2)
end
Expand All @@ -22,4 +22,4 @@ end

@test dB[1] === dA1
@test dB[2] === dA2
end
end

0 comments on commit bb6ed61

Please sign in to comment.