Skip to content

Commit

Permalink
use repr(C) for union; its correctness is clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
kazcw committed Aug 19, 2020
1 parent 5f35a9f commit 88cad1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils-simd/ppv-lite86/src/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 88cad1d

Please sign in to comment.