Skip to content

Commit fa5f6c5

Browse files
authored
Merge pull request #7 from saschatimme/findfirst2
Fix findfirst bug
2 parents 30e2a03 + 606ccc3 commit fa5f6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmult.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function multiplyvar(v::Vector{PolyVar{true}}, x::PolyVar{true})
1111
if (i != nothing && i > 0) && v[i] == x
1212
multiplyexistingvar(v, x, i)
1313
else
14-
insertvar(v, x, i == 0 ? length(v)+1 : i)
14+
insertvar(v, x, (i == nothing || i == 0) ? length(v)+1 : i)
1515
end
1616
end
1717
function (*)(x::PolyVar{true}, y::Monomial{true})

0 commit comments

Comments
 (0)