Skip to content

Commit 23549bd

Browse files
huiyuxieChrisRackauckas
authored andcommitted
Fix
1 parent 6947538 commit 23549bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vector_of_array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ for (type, N_expr) in [
906906
unpacked = unpack_voa(bc, i)
907907
arr_type = StaticArraysCore.similar_type(dest[:, i])
908908
dest[:, i] = if length(unpacked) == 1
909-
fill(copy(unpacked), arr_type)
909+
arr_type(unpacked[1])
910910
else
911911
arr_type(unpacked[j] for j in eachindex(unpacked))
912912
end

0 commit comments

Comments
 (0)