summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/GVector.java
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2004-10-05 17:57:17 +0000
committerKevin Rushforth <[email protected]>2004-10-05 17:57:17 +0000
commitc2c794b342ee48fbaa91b6a97123884a09807e80 (patch)
tree5eb9713f863876cea9ce49168c4ea0ad97b844dc /src/javax/vecmath/GVector.java
parent42c4b785100ca085a8e39d86a45cda07a8d898f1 (diff)
Issue number: 36
Submitted by: kcr Fixed Issue 36 -- Vector3d hashCode() method distinguishes between -0.0 and 0.0 git-svn-id: https://svn.java.net/svn/vecmath~svn/trunk@20 dd45e54d-f42e-c781-df72-dca083a658b1
Diffstat (limited to 'src/javax/vecmath/GVector.java')
-rw-r--r--src/javax/vecmath/GVector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/javax/vecmath/GVector.java b/src/javax/vecmath/GVector.java
index 89a9b37..da1bf6e 100644
--- a/src/javax/vecmath/GVector.java
+++ b/src/javax/vecmath/GVector.java
@@ -648,7 +648,7 @@ public class GVector implements java.io.Serializable, Cloneable {
long bits = 1L;
for (int i = 0; i < length; i++) {
- bits = 31L * bits + Double.doubleToLongBits(values[i]);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(values[i]);
}
return (int) (bits ^ (bits >> 32));