Skip to content

Commit 18aa87e

Browse files
authored
Merge pull request #144 from JuliaArrays/fixhang
Fix hang
2 parents 4ca0984 + 2cbc043 commit 18aa87e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/axes.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ similar_type(::Type{OptionallyStaticUnitRange{One,StaticInt{N1}}}, ::Type{Int},
123123
Return a valid range that maps to each index along dimension `d` of `A`.
124124
"""
125125
axes(a, dim) = axes(a, to_dims(a, dim))
126-
axes(a, dims::Tuple) = (axes(a, first(dims)), axes(a, tail(dims))...)
126+
axes(a, dims::Tuple{Vararg{Any,K}}) where {K} = (axes(a, first(dims)), axes(a, tail(dims))...)
127+
axes(a, dims::Tuple{T}) where {T} = (axes(a, first(dims)), )
127128
axes(a, ::Tuple{}) = ()
128129
function axes(a::A, dim::Integer) where {A}
129130
if parent_type(A) <: A

0 commit comments

Comments
 (0)