diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-13 19:43:44 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-13 19:43:44 +0000 |
| commit | a9a4cfc6147ae92577dee6ff79e45301079679fc (patch) | |
| tree | 035e21bd08c2d357184ac92aa3ff1d02a6fc31b4 | |
| parent | 5cf2905379e5dfc0a3ee4ff966b7d559102ff421 (diff) | |
util/nvmutil: more asserts
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -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[ |
