From 85a26594b8b0c8ecc860f5f8f1ad3842b2418c09 Mon Sep 17 00:00:00 2001 From: Tommy Hofmann Date: Mon, 25 Nov 2024 21:01:53 +0100 Subject: [PATCH] Update src/generic/GenericTypes.jl Co-authored-by: Max Horn --- src/generic/GenericTypes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/GenericTypes.jl b/src/generic/GenericTypes.jl index 67bd41133..cddd5985f 100644 --- a/src/generic/GenericTypes.jl +++ b/src/generic/GenericTypes.jl @@ -347,7 +347,7 @@ end function MPolyRing{T}(R::Ring, s::Vector{Symbol}, ord::Symbol, N::Int, cached::Bool = true) where T <: RingElement return get_cached!(MPolyID, (R, s, ord, N), cached) do - new{T}(R, s, ord, length(s), N, is_zero(one(R))) + new{T}(R, s, ord, length(s), N, is_trivial(R)) end::MPolyRing{T} end end