Commit 65261031 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

fix metabolite vector construction ambiguity

Found by Aqua.

References #389
parent d55323dd
Pipeline #48258 passed with stages
in 10 minutes
......@@ -4,7 +4,7 @@ struct MetaboliteWithCoefficient
MetaboliteWithCoefficient(c, m) = new(float(c), m)
end
function Base.:*(coeff, met::Metabolite)
function Base.:*(coeff::Real, met::Metabolite)
return MetaboliteWithCoefficient(coeff, met)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment