From 8564bb01c1ee3e8bf12acaecdc46662d3cdbe8e9 Mon Sep 17 00:00:00 2001 From: Tommy Hofmann Date: Tue, 5 Nov 2024 08:08:49 +0100 Subject: [PATCH] fix: expressifying empty factored elements (#1672) --- src/Misc/FactoredElem.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Misc/FactoredElem.jl b/src/Misc/FactoredElem.jl index 4c699a4755..ee9561a251 100644 --- a/src/Misc/FactoredElem.jl +++ b/src/Misc/FactoredElem.jl @@ -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