Skip to content

Commit

Permalink
Update bound on ocaml version + fix pb with 32-bit archs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gbury committed Mar 26, 2021
1 parent f72d291 commit 952ff9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion dolmen.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build: [
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.02.3"}
"ocaml" {>= "4.08"}
"menhir" {>= "20180703" & ( ! with-test | >= "20201201") }
"dune" { >= "2.7" }
"fmt" { >= "0.8.7" }
Expand Down
2 changes: 0 additions & 2 deletions src/bin/options.ml
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,10 @@ let parse_time arg =
let size_string f =
let n = int_of_float f in
let aux n div = n / div, n mod div in
let n_tera, n = aux n 1_000_000_000_000 in
let n_giga, n = aux n 1_000_000_000 in
let n_mega, n = aux n 1_000_000 in
let n_kilo, n = aux n 1_000 in
let print_aux s n = if n <> 0 then (string_of_int n) ^ s else "" in
(print_aux "To" n_tera) ^
(print_aux "Go" n_giga) ^
(print_aux "Mo" n_mega) ^
(print_aux "ko" n_kilo) ^
Expand Down

0 comments on commit 952ff9f

Please sign in to comment.