diff --git a/unix.c b/unix.c index f6c646a1..fd3b123f 100644 --- a/unix.c +++ b/unix.c @@ -98,7 +98,7 @@ int devuuid(uint64_t device, char* uuid, size_t uuid_size) } /* if it matches, we have the uuid */ - if (S_ISBLK(st.st_mode) && st.st_rdev == device) { + if (S_ISBLK(st.st_mode) && st.st_rdev == (dev_t)device) { snprintf(uuid, uuid_size, "%s", dd->d_name); break; }