Skip to content

Commit 1bf3e59

Browse files
Update src/abstractarray.jl
Co-authored-by: Mateusz Baran <[email protected]>
1 parent 44bfab8 commit 1bf3e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abstractarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ similar(::A,::Type{T},s::Size{S}) where {A<:AbstractArray,T,S} = similar(A,T,s)
130130

131131
# defaults to built-in mutable types for bits types
132132
similar(::Type{A}, ::Type{T}, s::Size{S}) where {A<:AbstractArray,T,S} =
133-
isbitstype(eltype(T)) ?
133+
isbitstype(T) ?
134134
mutable_similar_type(T, s, length_val(s))(undef) :
135135
sizedarray_similar_type(T, s, length_val(s))(undef)
136136

0 commit comments

Comments
 (0)