Skip to content

Commit 93e5874

Browse files
committed
Use memcpy so there's no alignment expectation
1 parent 8778938 commit 93e5874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/mono/mini/interp/interp-simd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interp_v128_i4_all_bits_set (gpointer res)
3232
static void
3333
interp_v128_bitcast (gpointer res, gpointer v1)
3434
{
35-
*(v128_i1*)res = *(v128_i1*)v1;
35+
memcpy (res, v1, SIZEOF_V128);
3636
}
3737

3838
// op_Addition

0 commit comments

Comments
 (0)