Skip to content

Commit 0951b79

Browse files
committed
replace nextind with i+1
1 parent ce8b3b0 commit 0951b79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/abstractarray.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -900,10 +900,10 @@ function copyto!(dest::AbstractArray, src)
900900
if haslength(src)
901901
length(dest) < length(src) &&
902902
throw(ArgumentError("destination has fewer elements than required"))
903-
I = firstindex(dest)
903+
i = Int(firstindex(dest))
904904
@inbounds for x in src
905-
dest[I] = x
906-
I = nextind(dest, I)
905+
dest[i] = x
906+
i += 1
907907
end
908908
else
909909
destiter = eachindex(dest)

0 commit comments

Comments
 (0)