util/nvmutil: fix a bad cast (or lack thereof)

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-10 06:53:39 +00:00
parent e26511c8b8
commit a6d0146a3b
+1 -1
View File
@@ -1327,7 +1327,7 @@ gbe_x_offset(size_t p, const char *f_op, const char *d_type,
check_bin(p, "part number");
off = (off_t)p * nsize;
off = ((off_t)p) * (off_t)nsize;
if (off + GBE_PART_SIZE > ncmp)
err(ECANCELED, "%s: GbE %s %s out of bounds",