Skip to content

Commit

Permalink
Replace deprecated Sort.list with List.sort
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-frigo committed Apr 3, 2020
1 parent c69d6c3 commit 2a0f320
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions genfft/annotate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ let reorder l =
List.map
(fun (a, x) -> ((a, x), (overlap va x, List.length x))) b in
let c' =
Sort.list
(fun (_, (a, la)) (_, (b, lb)) ->
la < lb || a > b)
List.sort
(fun (_, (a, la)) (_, (b, lb)) ->
if la < lb then -1
else if a > b then -1
else 1)
c in
let b' = List.map (fun (a, _) -> a) c' in
a :: (loop b') in
Expand Down

0 comments on commit 2a0f320

Please sign in to comment.