[scudo][NFC] Fix cast warning

This commit is contained in:
Vitaly Buka 2021-04-25 00:22:26 -07:00
parent 98a7563261
commit 337a024bba

View File

@ -96,7 +96,7 @@ static bool madviseNeedsMemset() {
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (!P)
dieOnMapUnmapError(errno == ENOMEM);
*P = -1;
*P = 1;
while (madvise(P, Size, MADV_DONTNEED) == -1 && errno == EAGAIN) {
}
bool R = (*P != 0);