Skip to content

Commit

Permalink
fix: expressifying empty factored elements
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Nov 4, 2024
1 parent 7d52dcb commit c236d5e
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

Check warning on line 229 in src/Misc/FactoredElem.jl

View check run for this annotation

Codecov / codecov/patch

src/Misc/FactoredElem.jl#L229

Added line #L229 was not covered by tests
end
prod = Expr(:call, :*)
for (k,v) = x.fac
Expand Down

0 comments on commit c236d5e

Please sign in to comment.