Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Oct 28, 2024
1 parent 02048c3 commit ed07b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector_of_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ for (type, N_expr) in [
unpacked = unpack_voa(bc, i)
arr_type = StaticArraysCore.similar_type(dest[:, i])
dest[:, i] = if length(unpacked) == 1
fill(copy(unpacked), arr_type)
arr_type(unpacked[1])
else
arr_type(unpacked[j] for j in eachindex(unpacked))
end
Expand Down

0 comments on commit ed07b28

Please sign in to comment.