Skip to content

Commit

Permalink
make copyto_unaliased more type-stable (JuliaLang#45930)
Browse files Browse the repository at this point in the history
This change makes static analysis happier.
xref: <aviatesk/JET.jl#374>
  • Loading branch information
aviatesk authored and Francesco Fucci committed Aug 11, 2022
1 parent 5820a01 commit da1482e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ function copyto_unaliased!(deststyle::IndexStyle, dest::AbstractArray, srcstyle:
# Dual-iterator implementation
ret = iterate(iterdest)
@inbounds for a in src
idx, state = ret
idx, state = ret::NTuple{2,Any}
dest[idx] = a
ret = iterate(iterdest, state)
end
Expand Down

0 comments on commit da1482e

Please sign in to comment.