Skip to content

Commit fcc1787

Browse files
committed
Runtime change 🫣
1 parent 5090e3a commit fcc1787

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/@rescript/runtime/lib/es6/Primitive_float.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ function compare(x, y) {
66
return 0;
77
} else if (x < y) {
88
return -1;
9-
} else if (x > y || x === x) {
9+
} else if (x > y) {
10+
return 1;
11+
} else if (x === x) {
1012
return 1;
1113
} else if (y === y) {
1214
return -1;

packages/@rescript/runtime/lib/js/Primitive_float.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ function compare(x, y) {
66
return 0;
77
} else if (x < y) {
88
return -1;
9-
} else if (x > y || x === x) {
9+
} else if (x > y) {
10+
return 1;
11+
} else if (x === x) {
1012
return 1;
1113
} else if (y === y) {
1214
return -1;

0 commit comments

Comments
 (0)