summaryrefslogtreecommitdiff
path: root/quantum/unicode
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@drashna.net>2023-05-08 10:56:03 -0700
committerGitHub <noreply@github.com>2023-05-08 10:56:03 -0700
commit5c4b53a1437adde49871752d8015bfc042b97c20 (patch)
treee67534e42cf3cdf95df869f8f66e23cfeba78524 /quantum/unicode
parent01be98184363591656ed6bd5baac21e6a5d61132 (diff)
[Bug] Realign and size check EECONFIG structures (#20541)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/unicode')
-rw-r--r--quantum/unicode/unicode.h4
1 files changed, 3 insertions, 1 deletions
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 {