diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-13 06:18:29 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | f99921d717adf8450738eeaeb8a1dec0e3e339bb (patch) | |
| tree | a897f5b6d62ebffe42d66a4b1574887548818cad /util/nvmutil/nvmutil.c | |
| parent | ddf13a7e747b5f5dddc100133b4472acfb6a2930 (diff) | |
util/nvmutil: add missing cast
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -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 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; } |
