Skip to content

Commit

Permalink
add warning to hash(::AbsMPolyMultSet)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed May 22, 2023
1 parent a7d55ef commit 7c336c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Rings/mpoly-localizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ function ==(T::AbsMPolyMultSet, U::AbsMPolyMultSet)
end

function Base.hash(T::AbsMPolyMultSet, h::UInt)
@warn """Hashing of multiplicative sets of type AbsMPolyMultSet is badly implemented
and should not be used. Please provide a better implementation for the type $(typeof(T))."""
b = 0x7ce51a28c47ec5e1 % UInt
h = hash(typeof(T), h)
h = hash(ambient_ring(T), h)
Expand Down

0 comments on commit 7c336c3

Please sign in to comment.