We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4746a4 commit 3c5bd85Copy full SHA for 3c5bd85
core/src/main/java/fj/Ord.java
@@ -487,7 +487,7 @@ public static <A extends Comparable<A>> Ord<A> comparableOrd() {
487
public static <A> Ord<A> hashOrd() {
488
return ord(a -> {
489
int aHash = a.hashCode();
490
- return a2 -> Ordering.fromInt(Integer.compare(aHash, a2.hashCode()));
+ return a2 -> Ordering.fromInt(Integer.valueOf(aHash).compareTo(a2.hashCode()));
491
});
492
}
493
0 commit comments