Skip to content

Commit b14df8b

Browse files
committed
adjust ml_z_of_int stub implementation
1 parent efe3fba commit b14df8b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

runtime/stubs.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ function smallest_float(x) {
3030
return 2.2250738585072014e-308;
3131
}
3232

33-
//Provides: ml_z_of_int
34-
//Requires: ml_z_of_int64, ml_z_to_int64
35-
function ml_z_of_int(x) {
36-
return ml_z_of_int64(ml_z_to_int64(x));
33+
//external of_int: int -> t
34+
//Provides: ml_z_of_int const
35+
//Requires: bigInt
36+
function ml_z_of_int(i) {
37+
return i | 0;
3738
}
3839

3940
//Provides: caml_thread_initialize const

0 commit comments

Comments
 (0)