From 88cad1dcb9e7da12b64fa762c74a128abb43bc7d Mon Sep 17 00:00:00 2001 From: Kaz Wesley Date: Wed, 19 Aug 2020 14:27:32 -0700 Subject: [PATCH] use repr(C) for union; its correctness is clearer --- utils-simd/ppv-lite86/src/generic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/utils-simd/ppv-lite86/src/generic.rs b/utils-simd/ppv-lite86/src/generic.rs index 4f4113f..b663a16 100644 --- a/utils-simd/ppv-lite86/src/generic.rs +++ b/utils-simd/ppv-lite86/src/generic.rs @@ -4,6 +4,7 @@ use core::ops::*; use crate::soft::{x2, x4}; use crate::types::*; +#[repr(C)] #[derive(Clone, Copy)] pub union vec128_storage { d: [u32; 4],