Skip to content

Commit

Permalink
fix: expressifying empty factored elements (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma authored Nov 5, 2024
1 parent 7d52dcb commit 8564bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc/FactoredElem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ end

function AbstractAlgebra.expressify(x::FacElem; context=nothing)
if length(x.fac) == 0
return Expr(:1)
return 1
end
prod = Expr(:call, :*)
for (k,v) = x.fac
Expand Down

0 comments on commit 8564bb0

Please sign in to comment.