We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b27984 commit 0a92618Copy full SHA for 0a92618
compiler/lib/ocaml_compiler.ml
@@ -42,7 +42,7 @@ let rec constant_of_const ~target c : Code.constant =
42
Int
43
(match target with
44
| `JavaScript -> Int32.of_int_warning_on_overflow i
45
- | `Wasm -> Int31.of_int_warning_on_overflow i)
+ | `Wasm -> Int31.(of_int_warning_on_overflow i |> to_int32))
46
| Const_block (tag, l) ->
47
let l = Array.of_list (List.map l ~f:(fun c -> constant_of_const ~target c)) in
48
Tuple (tag, l, Unknown)
0 commit comments