From 02a5686db576361c8a21ebe8d4bc054ca5b093ac Mon Sep 17 00:00:00 2001 From: Nikolai Golub Date: Fri, 11 Aug 2023 10:57:42 +0200 Subject: [PATCH] Add transparent representation for u5 --- src/primitives/gf32.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/primitives/gf32.rs b/src/primitives/gf32.rs index da42c5b0e..84e0db3d9 100644 --- a/src/primitives/gf32.rs +++ b/src/primitives/gf32.rs @@ -65,6 +65,7 @@ const CHARS_INV: [i8; 128] = [ /// An element in GF(32), the finite field containing elements `[0,31]` inclusive. #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] +#[repr(transparent)] pub struct Fe32(pub(crate) u8); impl Fe32 {