Fix hash codes of doubles.
This commit is contained in:
@@ -85,8 +85,8 @@ public class LuaDouble extends LuaNumber {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
long l = Double.doubleToLongBits(v);
|
long l = Double.doubleToLongBits(v + 1);
|
||||||
return ((int)(l>>32)) | (int) l;
|
return ((int)(l>>32)) + (int) l;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean islong() {
|
public boolean islong() {
|
||||||
|
|||||||
Reference in New Issue
Block a user