Skip to content

Commit 02a5686

Browse files
committed
Add transparent representation for u5
1 parent 4932626 commit 02a5686

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/primitives/gf32.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const CHARS_INV: [i8; 128] = [
6565

6666
/// An element in GF(32), the finite field containing elements `[0,31]` inclusive.
6767
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
68+
#[repr(transparent)]
6869
pub struct Fe32(pub(crate) u8);
6970

7071
impl Fe32 {

0 commit comments

Comments
 (0)