util/nvmutil: cast SIZE_4KB on the pwrite check

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-04 01:02:27 +00:00
parent 0d3a8749fe
commit 0d4822e700
+1 -1
View File
@@ -672,7 +672,7 @@ write_gbe_part(int p)
swap(p); /* swap bytes on big-endian host CPUs */
if (pwrite(fd, buf + (SIZE_4KB * p),
SIZE_4KB, ((off_t) p) * partsize) != SIZE_4KB) {
SIZE_4KB, ((off_t) p) * partsize) != (ssize_t) SIZE_4KB) {
err(ECANCELED,
"Can't write %d b to '%s' p%d", SIZE_4KB, fname, p);
}