summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-10 06:31:04 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-10 06:31:04 +0000
commit6392eb18b6f76e528e42d247c66f447778de102d (patch)
treec69bdd51d9f916cb133e3030ec5520e6a81c1bae
parent83f3a059b90af6b7164a1d20bf6e8bf99fee19b2 (diff)
util/nvmutil: add assert for int
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 77aa5d9a..106dfd6a 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -53,6 +53,7 @@ typedef char static_assert_char_is_8_bits[(CHAR_BIT == 8) ? 1 : -1];
typedef char static_assert_uint8_is_1[(sizeof(uint8_t) == 1) ? 1 : -1];
typedef char static_assert_uint16_is_2[(sizeof(uint16_t) == 2) ? 1 : -1];
typedef char static_assert_uint32_is_4[(sizeof(uint32_t) == 4) ? 1 : -1];
+typedef char static_assert_int_ge_32[(sizeof(int) >= 4) ? 1 : -1];
/*
* We set _FILE_OFFSET_BITS 64, but we only handle