Skip to content

Commit

Permalink
Compiler: no more Const_pointer in 4.07
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Mar 23, 2018
1 parent f0788a2 commit baeff63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/lib/util.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,10 @@ let rec obj_of_const =
) l;
b
#else
#if OCAML_VERSION < (4,7,0)
| Const_pointer i ->
Obj.repr i
#endif
| Const_block (tag,l) ->
let b = Obj.new_block tag (List.length l) in
List.iteri (fun i x ->
Expand Down

0 comments on commit baeff63

Please sign in to comment.