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:
parent
8d37aa4016
commit
dd715b13cd
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue