mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 14:50:26 +00:00
[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);
|
||||
if (!P)
|
||||
dieOnMapUnmapError(errno == ENOMEM);
|
||||
*P = -1;
|
||||
*P = 1;
|
||||
while (madvise(P, Size, MADV_DONTNEED) == -1 && errno == EAGAIN) {
|
||||
}
|
||||
bool R = (*P != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user