@@ -23,13 +23,17 @@ const FixedSizeMatrix{T} = FixedSizeArray{T,2}
23
23
function FixedSizeArray {T,N} (:: UndefInitializer , size:: NTuple{N,Int} ) where {T,N}
24
24
FixedSizeArray {T,N} (Internal (), Memory {T} (undef, checked_dims (size)), size)
25
25
end
26
- function FixedSizeArray {T,N} (:: UndefInitializer , size:: Vararg{Int,N} ) where {T,N}
26
+ function FixedSizeArray {T,N} (:: UndefInitializer , size:: NTuple{N,Integer} ) where {T,N}
27
+ ints = map (Int, size):: NTuple{N,Int} # prevent infinite recursion
28
+ FixedSizeArray {T,N} (undef, ints)
29
+ end
30
+ function FixedSizeArray {T,N} (:: UndefInitializer , size:: Vararg{Integer,N} ) where {T,N}
27
31
FixedSizeArray {T,N} (undef, size)
28
32
end
29
- function FixedSizeArray {T} (:: UndefInitializer , size:: Vararg{Int ,N} ) where {T,N}
33
+ function FixedSizeArray {T} (:: UndefInitializer , size:: Vararg{Integer ,N} ) where {T,N}
30
34
FixedSizeArray {T,N} (undef, size)
31
35
end
32
- function FixedSizeArray {T} (:: UndefInitializer , size:: NTuple{N,Int } ) where {T,N}
36
+ function FixedSizeArray {T} (:: UndefInitializer , size:: NTuple{N,Integer } ) where {T,N}
33
37
FixedSizeArray {T,N} (undef, size)
34
38
end
35
39
0 commit comments