diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-13 19:43:44 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | dc6df36fe50743bd30b4b767e8db76a83bf2b8ce (patch) | |
| tree | 43714901e9c8189d5987258f02847e1f0e021d76 /util | |
| parent | 23fee345fda0986e603545cc734dc04a8fea2a95 (diff) | |
util/nvmutil: more asserts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 9eaee3f3..c9026b7e 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -169,8 +169,10 @@ typedef unsigned int u32; /* type asserts */ typedef char static_assert_char_is_8_bits[(CHAR_BIT == 8) ? 1 : -1]; +typedef char static_assert_char_is_1[(sizeof(char) == 1) ? 1 : -1]; typedef char static_assert_uint8_is_1[(sizeof(u8) == 1) ? 1 : -1]; typedef char static_assert_uint16_is_2[(sizeof(u16) == 2) ? 1 : -1]; +typedef char static_assert_short_is_2[(sizeof(short) == 2) ? 1 : -1]; typedef char static_assert_uint32_is_4[(sizeof(u32) == 4) ? 1 : -1]; typedef char static_assert_int_ge_32[(sizeof(int) >= 4) ? 1 : -1]; typedef char static_assert_twos_complement[ |
