Skip to content

Commit

Permalink
Fix invalid anonymous function in broadcast_tup
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloferz committed Sep 19, 2016
1 parent 2193638 commit 918bf5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions base/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,8 @@ end
@inline broadcast_t(f, T, As...) = broadcast!(f, similar(Array{T}, broadcast_indices(As...)), As...)

@generated function broadcast_tup{AT,nargs}(f, As::AT, ::Type{Val{nargs}}, n)
quote
ntuple(n -> (@ncall $nargs f i->_broadcast_getindex(As[i], n)), Val{n})
end
fun = n -> (@ncall $nargs f i->_broadcast_getindex(As[i], n))
return :(ntuple($fun, Val{n}))
end

function broadcast_c(f, ::Type{Tuple}, As...)
Expand Down

0 comments on commit 918bf5c

Please sign in to comment.