forked from OSchip/llvm-project
[scudo][NFC] Fix cast warning
This commit is contained in:
parent
98a7563261
commit
337a024bba
|
@ -96,7 +96,7 @@ static bool madviseNeedsMemset() {
|
||||||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||||
if (!P)
|
if (!P)
|
||||||
dieOnMapUnmapError(errno == ENOMEM);
|
dieOnMapUnmapError(errno == ENOMEM);
|
||||||
*P = -1;
|
*P = 1;
|
||||||
while (madvise(P, Size, MADV_DONTNEED) == -1 && errno == EAGAIN) {
|
while (madvise(P, Size, MADV_DONTNEED) == -1 && errno == EAGAIN) {
|
||||||
}
|
}
|
||||||
bool R = (*P != 0);
|
bool R = (*P != 0);
|
||||||
|
|
Loading…
Reference in New Issue