mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: add missing cast
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user