summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-14 21:36:42 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-14 21:36:42 +0000
commitc6aba2acdb952d51a6e8ae732917b5a6e400a530 (patch)
tree2138c3d7170f3a75cf56df0a918a611270446a2f /util
parent46cd8b80c8bef7d82dad32063c5abe3c92149844 (diff)
nope, use size_t
despite my cast, size_t is better for mem index Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index cd9fff88..efd5ec13 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -1436,7 +1436,7 @@ cmd_helper_cat(void)
fflush(NULL);
for (p = 0; p < 2; p++) {
- gbe_cat_buf(buf + (ulong)(p * GBE_PART_SIZE));
+ gbe_cat_buf(buf + (size_t)(p * GBE_PART_SIZE));
for (ff = 0; ff < n; ff++)
gbe_cat_buf(pad);
@@ -1757,7 +1757,7 @@ gbe_mem_offset(size_t p, const char *f_op)
off_t gbe_off = gbe_x_offset(p, f_op, "mem",
GBE_PART_SIZE, GBE_FILE_SIZE);
- return (u8 *)(buf + (ulong)gbe_off);
+ return (u8 *)(buf + (size_t)gbe_off);
}
/*
@@ -1881,7 +1881,7 @@ rw_file_exact(int fd, u8 *mem, size_t nrw,
break;
if ((rv = prw(fd,
- mem + (ulong)rc, nrw - rc, off + rc, rw_type,
+ mem + (size_t)rc, nrw - rc, off + rc, rw_type,
loop_eagain, loop_eintr)) < 0)
return -1;