Skip to content

Commit b300759

Browse files
committed
Bug in isone fixed
1 parent 42e7460 commit b300759

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Mods"
22
uuid = "7475f97c-0381-53b1-977b-4c60186c8d62"
33
author = ["Edward Scheinerman <[email protected]>"]
4-
version = "2.2.0"
4+
version = "2.2.1"
55

66
[compat]
77
julia = "1"

src/basic_functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121

2222
# Test for equality
2323
iszero(x::AbstractMod) = iszero(value(x))
24-
isone(x::AbstractMod) = isone(value(y))
24+
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)
2727
(==)(x::T, y::AbstractMod) where {T<:CZQ} = Mod{modulus(x)}(x) == y

0 commit comments

Comments
 (0)