Skip to content

Commit 5de3bb1

Browse files
committed
inline one more local function
1 parent 9920fed commit 5de3bb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/array_partition.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,10 @@ end
281281

282282
@inline function Base.copyto!(dest::ArrayPartition, bc::Broadcast.Broadcasted{ArrayPartitionStyle{Style}}) where Style
283283
N = npartitions(dest, bc)
284-
ntuple(i->copyto!(dest.x[i], unpack(bc, i)), Val(N))
284+
@inline function f(i)
285+
copyto!(dest.x[i], unpack(bc, i))
286+
end
287+
ntuple(f, Val(N))
285288
dest
286289
end
287290

0 commit comments

Comments
 (0)