File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ module Ezjsonm_expander : EXPANDER = struct
5151 let expand_intlit ~loc _ = Raise. unsupported_payload ~loc
5252
5353 let expand_int ~loc ~pexp_loc s =
54- match Ocaml_compat. int_of_string_opt s with
54+ match int_of_string_opt s with
5555 | Some i ->
5656 [% expr `Float [% e Ast_builder.Default. efloat ~loc (string_of_int i)]]
5757 | _ -> Raise. unsupported_payload ~loc: pexp_loc
@@ -70,7 +70,7 @@ module Yojson_expander : EXPANDER = struct
7070 [% expr `Intlit [% e Ast_builder.Default. estring ~loc s]]
7171
7272 let expand_int ~loc ~pexp_loc s =
73- match Ocaml_compat. int_of_string_opt s with
73+ match int_of_string_opt s with
7474 | Some i -> [% expr `Int [% e Ast_builder.Default. eint ~loc i]]
7575 | None when Integer_const. is_binary s ->
7676 Raise. unsupported_payload ~loc: pexp_loc
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ let expand_intlit ~loc s =
77 [% pat? `Intlit [% p Ast_builder.Default. pstring ~loc s]]
88
99let expand_int ~loc ~ppat_loc s =
10- match Ocaml_compat. int_of_string_opt s with
10+ match int_of_string_opt s with
1111 | Some i -> [% pat? `Int [% p Ast_builder.Default. pint ~loc i]]
1212 | None when Integer_const. is_binary s ->
1313 Raise. unsupported_payload ~loc: ppat_loc
You can’t perform that action at this time.
0 commit comments