From dd715b13cda2d2d7bf61c0b9540236318e68568b Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sun, 5 Sep 2010 19:07:50 +0000 Subject: [PATCH] fixed wrong hashcode for mantissa array git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992861 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/math/dfp/Dfp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math/dfp/Dfp.java b/src/main/java/org/apache/commons/math/dfp/Dfp.java index b7f48991f..550aaed18 100644 --- a/src/main/java/org/apache/commons/math/dfp/Dfp.java +++ b/src/main/java/org/apache/commons/math/dfp/Dfp.java @@ -833,7 +833,7 @@ public class Dfp implements FieldElement { */ @Override public int hashCode() { - return 17 + (sign << 8) + (nans << 16) + exp + mant.hashCode(); + return 17 + (sign << 8) + (nans << 16) + exp + Arrays.hashCode(mant); } /** Check if instance is not equal to x.