Skip to content

Commit 656d68c

Browse files
author
oscarddssmith
committed
fix factorization for other types of Dict
1 parent 54a6be0 commit 656d68c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/factorization.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ function increment!(f::Factorization{T}, e::Int, p::Integer) where T
5656
end
5757
f
5858
end
59-
increment!(f::AbstractDict, e::Int, p::Integer) = (f[p] = get(f, p, 0) + e)
59+
function increment!(f::AbstractDict, e::Int, p::Integer)
60+
f[p] = get(f, p, 0) + e
61+
return f
62+
end
6063

6164
Base.length(f::Factorization) = length(f.pe)
6265

0 commit comments

Comments
 (0)