Skip to content

Commit

Permalink
Fix compilation when using a development version of the OCaml compiler
Browse files Browse the repository at this point in the history
kit-ty-kate authored and let-def committed Oct 28, 2020
1 parent 2162fe6 commit 0635b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dune
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ let at_least_4_03 =
| Some j -> String.sub s i (j - i) :: split s (j + 1)
| None -> [String.sub s i (String.length s - i)]
in
let v = List.map int_of_string (split version 0) in
let v = List.map (fun v -> try int_of_string v with Failure _ -> 0) (split version 0) in
v >= [4; 3]

let () =

0 comments on commit 0635b6f

Please sign in to comment.