fixed wrong hashcode for mantissa array

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2010-09-05 19:09:44 +00:00
parent 3a08d608eb
commit 99b17c9ce1
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ public class Dfp implements FieldElement<Dfp> {
*/ */
@Override @Override
public int hashCode() { 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. /** Check if instance is not equal to x.