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
This commit is contained in:
Luc Maisonobe 2010-09-05 19:07:50 +00:00
parent 8d37aa4016
commit dd715b13cd
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ public class Dfp implements FieldElement<Dfp> {
*/
@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.