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:
parent
3a08d608eb
commit
99b17c9ce1
|
@ -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