Skip to content

Commit

Permalink
Avoid calling dynamic combine_indices (duh!)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Dec 7, 2017
1 parent 2edd21e commit b146f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else
BroadcastStyle(::StaticArrayStyle{M}, ::Broadcast.MatrixStyle) where {N,M} = Broadcast.Unknown()

# Add a broadcast method that calls the old @generated routine
@inline function broadcast(f, ::StaticArrayStyle{N}, ::Type{ElType}, inds::Tuple{Vararg{AbstractUnitRange, M}} where M, As...) where {N, ElType}
@inline function broadcast(f, ::StaticArrayStyle, ::Void, ::Void, As...)
_broadcast(f, broadcast_sizes(As...), As...)
end

Expand Down

0 comments on commit b146f8a

Please sign in to comment.