From 0be595b47e77b00f68c4d6670e6c909f0fe15e65 Mon Sep 17 00:00:00 2001 From: Corwin Date: Sun, 9 Oct 2022 11:31:28 +0100 Subject: [PATCH] make guarentee even stronger --- agb-fixnum/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index c17ce0af..e20bda94 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -134,7 +134,7 @@ fixed_width_signed_integer_impl!(i32); /// A fixed point number represented using `I` with `N` bits of fractional precision #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] -#[repr(C)] +#[repr(transparent)] pub struct Num(I); /// An often convenient representation for the Game Boy Advance using word sized