Skip to content

Commit

Permalink
Update src/dispatch.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 15, 2024
1 parent 42fc75d commit f3695dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Base.sum(
dims = :,
init = zero(promote_operation(+, T, T)),
) where {T<:AbstractMutable}
if !ismissing(dims)
if dims !== :
# We cannot use `mapreduce` with `add!!` instead of `Base.add_mul` like
# `operate(sum, ...)` because the same instance given at `init` is used
# at several places.
Expand Down

0 comments on commit f3695dd

Please sign in to comment.