diff --git a/projects/Math/96/org/apache/commons/math/complex/Complex.java b/projects/Math/96/org/apache/commons/math/complex/Complex.java index 3571567..8b622cb 100644 --- a/projects/Math/96/org/apache/commons/math/complex/Complex.java +++ b/projects/Math/96/org/apache/commons/math/complex/Complex.java @@ -255,7 +255,7 @@ public boolean equals(Object other) { if (rhs.isNaN()) { ret = this.isNaN(); } else { - ret = (Double.doubleToRawLongBits(real) == Double.doubleToRawLongBits(rhs.getReal())) && (Double.doubleToRawLongBits(imaginary) == Double.doubleToRawLongBits(rhs.getImaginary())); + ret = (real == rhs.real) && (imaginary == rhs.imaginary); } } catch (ClassCastException ex) { // ignore exception