Skip to content

Commit fce02e7

Browse files
committed
Utls.list_medianf: use float comparison instead of generic
1 parent 4e06579 commit fce02e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utls.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ let in_bounds lb x hb =
333333

334334
let list_medianf (l: float list): float =
335335
let xs = Array.of_list l in
336-
Array.sort Pervasives.compare xs;
336+
Array.sort BatFloat.compare xs;
337337
let n = Array.length xs in
338338
if n mod 2 = 1 then
339339
xs.(n/2)

0 commit comments

Comments
 (0)