Skip to content

Commit

Permalink
Update src/generic/GenericTypes.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <[email protected]>
  • Loading branch information
thofma and fingolfin authored Nov 25, 2024
1 parent 0ea0b47 commit 85a2659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generic/GenericTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85a2659

Please sign in to comment.