Skip to content

Commit e8f1fc3

Browse files
committed
Revert rewrap changes
Signed-off-by: ErikQQY <[email protected]>
1 parent 02501d6 commit e8f1fc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vector_of_array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,9 +718,9 @@ Base.eltype(::Type{<:AbstractVectorOfArray{T}}) where {T} = T
718718

719719
@inline function Base.similar(VA::AbstractVectorOfArray, args...)
720720
if args[end] isa Type
721-
return Base.similar(VA.u, args..., size(VA))
721+
return return Base.similar(eltype(VA)[], args..., size(VA))
722722
else
723-
return Base.similar(VA.u, args...)
723+
return Base.similar(eltype(VA)[], args...)
724724
end
725725
end
726726

0 commit comments

Comments
 (0)