diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 06:53:39 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 06:53:39 +0000 |
| commit | a6d0146a3bf11b0a2d15eb4324682940bfae4ade (patch) | |
| tree | 851dd35379042e4fe269ee95c8dd98d13f3750cc | |
| parent | e26511c8b8534abbbe68ddc7a3b0423d3305cc26 (diff) | |
util/nvmutil: fix a bad cast (or lack thereof)
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 15ff3192..f5ce6a74 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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", |
