Skip to content

Commit

Permalink
fixed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanburen committed Dec 23, 2024
1 parent b3e3b45 commit 5e5c4f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bytecomp/bytegen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,8 @@ let rec comp_expr stack_info env exp sz cont =
Lconst (Const_base (Const_float32 "0.0"))
| Punboxedfloatarray Unboxed_float64 ->
Lconst (Const_base (Const_float "0.0"))
| Punboxedintarray (Unboxed_int8| Unboxed_int16) ->
Misc.unboxed_small_int_arrays_are_not_implemented ()
| Punboxedintarray Unboxed_int32 ->
Lconst (Const_base (Const_int32 0l))
| Punboxedintarray Unboxed_int64 ->
Expand All @@ -1026,6 +1028,8 @@ let rec comp_expr stack_info env exp sz cont =
Lconst (Const_base (Const_float32 "0.0"))
| Punboxedfloat_ignorable Unboxed_float64 ->
Lconst (Const_base (Const_float "0.0"))
| Punboxedint_ignorable (Unboxed_int8| Unboxed_int16) ->
Misc.unboxed_small_int_arrays_are_not_implemented ()
| Punboxedint_ignorable Unboxed_int32 ->
Lconst (Const_base (Const_int32 0l))
| Punboxedint_ignorable Unboxed_int64 ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ let makearray_dynamic env (lambda_array_kind : L.array_kind)
(Thirty_two
{ zero_init = Lconst (Const_base (Const_unboxed_int32 0l)) })
~init
| Punboxedintarray (Unboxed_int8 | Unboxed_int16) ->
Misc.unboxed_small_int_arrays_are_not_implemented ()
| Punboxedintarray Unboxed_int64 ->
makearray_dynamic_singleton_uninitialized "unboxed_int64" ~length mode loc
|> initialize_array env loc ~length (Punboxedintarray_set Unboxed_int64)
Expand Down

0 comments on commit 5e5c4f3

Please sign in to comment.