From 62131ec093a9808ef2d9a5fc0b4c8840ef4a5df4 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 13 Mar 2026 06:18:29 +0000 Subject: util/nvmutil: add missing cast Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 5ee877eb..8be216aa 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1654,7 +1654,7 @@ prw(int fd, void *mem, size_t nrw, prw_type = rw_type ^ IO_PREAD; - if (prw_type > IO_WRITE) { + if ((unsigned int)prw_type > IO_WRITE) { errno = EIO; return -1; } -- cgit v1.2.1