Skip to content

Commit bb32ad1

Browse files
committed
Fix ambiguities on Julia 1.0
1 parent 09e1160 commit bb32ad1

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
@@ -137,7 +137,7 @@ homogenize_shape(shape::Tuple{Vararg{HeterogeneousShape}}) = map(last, shape)
137137

138138
@inline reshape(a::StaticArray, s::Size) = similar_type(a, s)(Tuple(a))
139139
@inline reshape(a::AbstractArray, s::Size) = _reshape(a, IndexStyle(a), s)
140-
@inline reshape(a::StaticArray, s::Tuple{Vararg{SOneTo}}) = reshape(a, homogenize_shape(s))
140+
@inline reshape(a::StaticArray, s::Tuple{SOneTo,Vararg{SOneTo}}) = reshape(a, homogenize_shape(s))
141141
@generated function _reshape(a::AbstractArray, indexstyle, s::Size{S}) where {S}
142142
if indexstyle == IndexLinear
143143
exprs = [:(a[$i]) for i = 1:prod(S)]

0 commit comments

Comments
 (0)