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