We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7123278 commit 51d7d3fCopy full SHA for 51d7d3f
src/basic_functions.jl
@@ -24,5 +24,5 @@ iszero(x::AbstractMod) = iszero(value(x))
24
isone(x::AbstractMod) = isone(value(x))
25
(==)(x::AbstractMod, y::AbstractMod) = modulus(x) == modulus(y) && value(x) == value(y)
26
(==)(x::AbstractMod, y::T) where {T<:CZQ} = x == Mod{modulus(x)}(y)
27
-(==)(x::T, y::AbstractMod) where {T<:CZQ} = Mod{modulus(x)}(x) == y
+(==)(x::T, y::AbstractMod) where {T<:CZQ} = y==x
28
0 commit comments