Skip to content

Commit 3aea74e

Browse files
authored
Merge pull request #26658 from JuliaLang/sb/accumulate2
Change accumulation promotion behaviour
2 parents f07dd9f + bd81947 commit 3aea74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sparsematrix.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ function getindex(A::SparseMatrixCSC{Tv,Ti}, I::AbstractArray) where {Tv,Ti}
23062306
end
23072307
end
23082308
end
2309-
colptrB = cumsum(colptrB)
2309+
cumsum!(colptrB,colptrB)
23102310
if n > (idxB-1)
23112311
deleteat!(nzvalB, idxB:n)
23122312
deleteat!(rowvalB, idxB:n)

0 commit comments

Comments
 (0)