diff --git a/src/Lucene.Net/Support/Threading/AtomicDouble.cs b/src/Lucene.Net/Support/Threading/AtomicDouble.cs index 4436d535e6..f62789e643 100644 --- a/src/Lucene.Net/Support/Threading/AtomicDouble.cs +++ b/src/Lucene.Net/Support/Threading/AtomicDouble.cs @@ -339,7 +339,7 @@ public static implicit operator double(AtomicDouble atomicInt64) if (a1 is null) return false; - return a1.Value.Equals(a2); + return a1.Equals(a2); } /// @@ -391,7 +391,7 @@ public static implicit operator double(AtomicDouble atomicInt64) if (a2 is null) return false; - return a1.Value.Equals(a2.Value); + return a1.Equals(a2.Value); } ///