Skip to content

Commit 51d7d3f

Browse files
committed
Bug fix
1 parent 7123278 commit 51d7d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic_functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ iszero(x::AbstractMod) = iszero(value(x))
2424
isone(x::AbstractMod) = isone(value(x))
2525
(==)(x::AbstractMod, y::AbstractMod) = modulus(x) == modulus(y) && value(x) == value(y)
2626
(==)(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
27+
(==)(x::T, y::AbstractMod) where {T<:CZQ} = y==x
2828

0 commit comments

Comments
 (0)