diff --git a/src/common/System.cpp b/src/common/System.cpp index 8fdfaa8c8f..612de5f30e 100644 --- a/src/common/System.cpp +++ b/src/common/System.cpp @@ -477,7 +477,7 @@ void GenRandomBytes(void* dest, size_t size) Sys::Error("getrandom syscall failed: %s", strerror(errno)); } } - else if (ret != size) + else if (static_cast(ret) != size) { Sys::Error("getrandom syscall returned insufficient data"); }