summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-15 00:20:49 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commit210f17b9d74ea941f73c9d92f5c636a6fbbcb366 (patch)
tree4cac94fef26635beb3713b6bd9bdf5b170ad0292
parent7530881adc288f2e9eac90eaa4f14f8399a969ac (diff)
cast
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 6fc5f4a7..a26fa553 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -1838,7 +1838,7 @@ rw_gbe_file_exact(int fd, u8 *mem, size_t nrw,
if (nrw > (size_t)(gbe_file_size - off))
goto err_rw_gbe_file_exact;
- if (nrw > GBE_PART_SIZE)
+ if (nrw > (size_t)GBE_PART_SIZE)
goto err_rw_gbe_file_exact;
return rw_file_exact(fd, mem, nrw, off, rw_type,