From 5c4b53a1437adde49871752d8015bfc042b97c20 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Mon, 8 May 2023 10:56:03 -0700 Subject: [Bug] Realign and size check EECONFIG structures (#20541) Co-authored-by: Nick Brassel --- quantum/unicode/unicode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'quantum/unicode') diff --git a/quantum/unicode/unicode.h b/quantum/unicode/unicode.h index 6f1e35d554..06505d87c0 100644 --- a/quantum/unicode/unicode.h +++ b/quantum/unicode/unicode.h @@ -21,12 +21,14 @@ #include "quantum.h" typedef union { - uint32_t raw; + uint8_t raw; struct { uint8_t input_mode : 8; }; } unicode_config_t; +_Static_assert(sizeof(unicode_config_t) == sizeof(uint8_t), "Unicode EECONFIG out of spec."); + extern unicode_config_t unicode_config; enum unicode_input_modes { -- cgit v1.2.3