Skip to content

Commit

Permalink
fix function
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Jul 21, 2023
1 parent 6b0353d commit db3a59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparsevector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ for fun in (:+, :-)
res = spzeros(T, length(x))
copyto!(res, x)
nzinds = nonzeroinds(y)
nzvals = nzvals(y)
nzvals = nonzeros(y)
@inbounds for nzidx in eachindex(nzinds)
res[nzinds[nzidx]] += nzvals[nzidx]
end
Expand Down

0 comments on commit db3a59f

Please sign in to comment.