summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/GVector.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/javax/vecmath/GVector.java')
-rw-r--r--src/javax/vecmath/GVector.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/javax/vecmath/GVector.java b/src/javax/vecmath/GVector.java
index f28db87..9cd1412 100644
--- a/src/javax/vecmath/GVector.java
+++ b/src/javax/vecmath/GVector.java
@@ -663,10 +663,10 @@ public class GVector implements java.io.Serializable, Cloneable {
long bits = 1L;
for (int i = 0; i < length; i++) {
- bits = 31L * bits + VecMathUtil.doubleToLongBits(values[i]);
+ bits = VecMathUtil.hashDoubleBits(bits, values[i]);
}
- return (int) (bits ^ (bits >> 32));
+ return VecMathUtil.hashFinish(bits);
}