Skip to content

Commit 163880a

Browse files
authored
Fix float32 allocation test with --enable-dev (#2598)
fix
1 parent 40b69a6 commit 163880a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/otherlibs/stdlib_beta/float32.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ external modf : t -> t * t = "caml_modf_float32"
418418
(** [modf f] returns the pair of the fractional and integral
419419
part of [f]. *)
420420

421-
val compare : t -> t -> int
421+
external compare : t -> t -> int = "%compare"
422422
(** [compare x y] returns [0] if [x] is equal to [y], a negative integer if [x]
423423
is less than [y], and a positive integer if [x] is greater than
424424
[y]. [compare] treats [nan] as equal to itself and less than any other float

0 commit comments

Comments
 (0)