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 pcjentsch committed Aug 18, 2022
1 parent d529721 commit 9255e87
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 9255e87

Please sign in to comment.