Skip to content

Commit b3d398a

Browse files
committed
Make _size_inner type stable
1 parent 457d1bb commit b3d398a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/array_of_similar_arrays.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export ArrayOfSimilarArrays
7070

7171
function _size_inner(A::AbstractArray{<:AbstractArray{T,M},N}) where {T,M,N}
7272
s = if !isempty(A)
73-
map(Int, size(A[1]))
73+
sz_A = size(A[1])
74+
ntuple(i -> Int(sz_A[i]), Val(M))
7475
else
7576
ntuple(_ -> zero(Int), Val(M))
7677
end

0 commit comments

Comments
 (0)