Skip to content

Commit 2f6a1d5

Browse files
N5N3tkf
andcommitted
Update base/reducedim.jl
Co-authored-by: Takafumi Arakaki <takafumi.a@gmail.com>
1 parent 4716e0a commit 2f6a1d5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

base/reducedim.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ for (Op, initfun) in ((:(typeof(add_sum)), :zero), (:(typeof(mul_prod)), :one))
8080
@eval initarray!(a::AbstractArray{T}, ::Any, ::$(Op), init::Bool, src::AbstractArray) where {T} = (init && fill!(a, $(initfun)(T)); a)
8181
end
8282

83-
# for min/max copyfirst is not correct for initialization, use `mapfirst!` instead
8483
initarray!(a::AbstractArray{T}, f, ::Union{typeof(min),typeof(max),typeof(_extrema_rf)},
8584
init::Bool, src::AbstractArray) where {T} = (init && mapfirst!(f, a, src); a)
8685

0 commit comments

Comments
 (0)