Skip to content

Commit 80b1ac8

Browse files
committed
Use repr(C) for SIMD-like types
1 parent d1c1a98 commit 80b1ac8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "blake2-rfc"
3-
version = "0.2.8"
3+
version = "0.2.9"
44
authors = ["Cesar Eduardo Barros <[email protected]>"]
55
description = "A pure Rust implementation of BLAKE2 based on the draft RFC."
66
repository = "https://github.com/cesarb/blake2-rfc"

src/simd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ use std::mem::transmute;
3131
pub use simdty::{u32x4, u64x4};
3232

3333
#[cfg(not(feature = "simd"))]
34-
#[allow(non_camel_case_types)]
3534
#[derive(Clone, Copy, Debug)]
35+
#[repr(C)]
3636
pub struct u32x4(pub u32, pub u32, pub u32, pub u32);
3737

3838
#[cfg(not(feature = "simd"))]
39-
#[allow(non_camel_case_types)]
4039
#[derive(Clone, Copy, Debug)]
40+
#[repr(C)]
4141
pub struct u64x4(pub u64, pub u64, pub u64, pub u64);
4242

4343
#[cfg(not(feature = "simd"))]

0 commit comments

Comments
 (0)