Skip to content

Commit 0f8a590

Browse files
authored
Fix a warning when compiling the C stubs with OCaml 5 (#5887)
1 parent 7051223 commit 0f8a590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/ext/ext_basic_hash_stubs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ CAMLprim value caml_int_array_blit(
7171
value a2, value ofs2,
7272
value n)
7373
{
74-
memmove(&Field(a2, Long_val(ofs2)),
75-
&Field(a1, Long_val(ofs1)),
74+
memmove((value *)&Field(a2, Long_val(ofs2)),
75+
(value *)&Field(a1, Long_val(ofs1)),
7676
Long_val(n) * sizeof(value));
7777
return Val_unit;
7878
}

0 commit comments

Comments
 (0)