You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2010/09/05 21:09:44 UTC

svn commit: r992864 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java

Author: luc
Date: Sun Sep  5 19:09:44 2010
New Revision: 992864

URL: http://svn.apache.org/viewvc?rev=992864&view=rev
Log:
fixed wrong hashcode for mantissa array

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java?rev=992864&r1=992863&r2=992864&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java Sun Sep  5 19:09:44 2010
@@ -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.