Skip to content

Commit 3e9f908

Browse files
committed
compose_pss to compose_promote_sys_size
1 parent 8592dba commit 3e9f908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/reducedim.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ any!(r, A)
577577
for (fname, op) in [(:sum, :+), (:prod, :*),
578578
(:maximum, :scalarmax), (:minimum, :scalarmin),
579579
(:all, :&), (:any, :|)]
580-
function compose_pss(x)
580+
function compose_promote_sys_size(x)
581581
if fname in [:sum, :prod]
582582
:(promote_sys_size $x)
583583
else
@@ -592,7 +592,7 @@ for (fname, op) in [(:sum, :+), (:prod, :*),
592592
$(fname!)(r::AbstractArray, A::AbstractArray; init::Bool=true) = $(fname!)(identity, r, A; init=init)
593593

594594
$(fname)(f::Function, A::AbstractArray, region) =
595-
mapreducedim($(compose_pss(:f)), $(op), A, region)
595+
mapreducedim($(compose_promote_sys_size(:f)), $(op), A, region)
596596
$(fname)(A::AbstractArray, region) = $(fname)(identity, A, region)
597597
end
598598
end

0 commit comments

Comments
 (0)