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 01b6972 commit e99a9af
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 @@ -264,7 +264,7 @@ end

function PolyRing{T}(R::Ring, s::Symbol, cached::Bool = true) where T <: RingElement
return get_cached!(PolyID, (R, s), cached) do
new{T}(R, s, is_zero(one(R)))
new{T}(R, s, is_trivial(R))
end::PolyRing{T}
end
end
Expand Down

0 comments on commit e99a9af

Please sign in to comment.