Skip to content

Commit a8a2608

Browse files
committed
Avoid re-using the same variable name
1 parent 52a3202 commit a8a2608

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/broadcast.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,7 @@ const NonleafHandlingStyles = Union{DefaultArrayStyle,ArrayConflict}
737737
ElType = combine_eltypes(bc.f, bc.args)
738738
if Base.isconcretetype(ElType)
739739
# We can trust it and defer to the simpler `copyto!`
740-
dest = broadcast_similar(Style(), ElType, axes(bc), bc)
741-
return copyto!(dest, bc)
740+
return copyto!(broadcast_similar(Style(), ElType, axes(bc), bc), bc)
742741
end
743742
# When ElType is not concrete, use narrowing. Use the first output
744743
# value to determine the starting output eltype; copyto_nonleaf!

0 commit comments

Comments
 (0)