Skip to content

Commit afc8d81

Browse files
committed
Add a comment to UB of Caml_int64.bits_of_float
1 parent b51f8f2 commit afc8d81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jscomp/runtime/caml_int64.mli

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
(** *)
3030

31-
type t (* = { lo : nativeint; hi : nativeint; } *)
31+
type t
3232
val min_int : t
3333
val max_int : t
3434
val one : t
@@ -77,7 +77,10 @@ val compare : t -> t -> int
7777

7878

7979
val float_of_bits : t -> float
80+
81+
(** [bits_of_float fl] it is undefined behaivor when [f] is NaN*)
8082
val bits_of_float : float -> t
83+
8184
val get64 : string -> int -> t
8285

8386

0 commit comments

Comments
 (0)