summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Tuple2f.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/javax/vecmath/Tuple2f.java')
-rw-r--r--src/javax/vecmath/Tuple2f.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/javax/vecmath/Tuple2f.java b/src/javax/vecmath/Tuple2f.java
index 3071485..d5b72d8 100644
--- a/src/javax/vecmath/Tuple2f.java
+++ b/src/javax/vecmath/Tuple2f.java
@@ -292,9 +292,9 @@ public abstract class Tuple2f implements java.io.Serializable, Cloneable {
@Override
public int hashCode() {
long bits = 1L;
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(x);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(y);
- return (int) (bits ^ (bits >> 32));
+ bits = VecMathUtil.hashFloatBits(bits, x);
+ bits = VecMathUtil.hashFloatBits(bits, y);
+ return VecMathUtil.hashFinish(bits);
}