Skip to content

Commit f98c6f2

Browse files
committed
fix test
1 parent db58a68 commit f98c6f2

File tree

1 file changed

+3
-1
lines changed
  • ocaml/testsuite/tests/typing-layouts-float32

1 file changed

+3
-1
lines changed

ocaml/testsuite/tests/typing-layouts-float32/alloc.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ module Float32_u = struct
2222
let ( * ) = mul
2323
let ( / ) = div
2424
let ( ** ) = pow
25-
let ( > ) x y = (compare x y) > 0
25+
26+
(* With [--enable-dev], the compiler can't fully inline the comparison. *)
27+
let ( > ) x y = Stdlib.compare (to_float32 x) (to_float32 y) > 0
2628
end
2729

2830
let alloc = ref 0.0

0 commit comments

Comments
 (0)