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