Skip to content

Commit

Permalink
Fixing compilation error... did compile on my maching with OCaml 4.13…
Browse files Browse the repository at this point in the history
….1, but List.map is inappropriate here, anyway
  • Loading branch information
eladrion committed Jan 9, 2024
1 parent b67e1a0 commit db778f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/extraction/table.ml
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,7 @@ let extract_constant_generic r arity_handler redefinition_handler leafs =
let typ = Reduction.whd_all env typ in
if Reduction.is_arity env typ then arity_handler env typ g;
redefinition_handler g;
List.map (Lib.add_leaf) (leafs g);
()
List.iter (Lib.add_leaf) (leafs g)
| _ -> error_constant ?loc:r.CAst.loc g

let extract_constant_inline inline r ids s =
Expand Down

0 comments on commit db778f7

Please sign in to comment.