Skip to content

Commit

Permalink
Fix build before 4.12
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Sep 13, 2024
1 parent 6b27984 commit 0a92618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/lib/ocaml_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let rec constant_of_const ~target c : Code.constant =
Int
(match target with
| `JavaScript -> Int32.of_int_warning_on_overflow i
| `Wasm -> Int31.of_int_warning_on_overflow i)
| `Wasm -> Int31.(of_int_warning_on_overflow i |> to_int32))
| Const_block (tag, l) ->
let l = Array.of_list (List.map l ~f:(fun c -> constant_of_const ~target c)) in
Tuple (tag, l, Unknown)
Expand Down

0 comments on commit 0a92618

Please sign in to comment.