Skip to content
Snippets Groups Projects
Commit 9e42a915 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[lib] fix Json printer for floating points x.0

parent 37296a0f
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,7 @@ let rec pp fmt v = let open Format in ...@@ -167,7 +167,7 @@ let rec pp fmt v = let open Format in
| `Bool b -> pp_print_bool fmt b | `Bool b -> pp_print_bool fmt b
| `String s -> fprintf fmt "%S" s | `String s -> fprintf fmt "%S" s
| `Int a -> pp_print_int fmt a | `Int a -> pp_print_int fmt a
| `Float f -> pp_print_float fmt f | `Float f -> Format.fprintf fmt "%g" f
| `List [] -> pp_print_string fmt "[]" | `List [] -> pp_print_string fmt "[]"
| `List (e::es) -> | `List (e::es) ->
Format.fprintf fmt "@[<hov 2>[ %a" pp e ; Format.fprintf fmt "@[<hov 2>[ %a" pp e ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment