mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-27 13:33:18 +08:00
fix compile without MADV_FREE (pr #715 by elbaro)
This commit is contained in:
parent
f08d9d489c
commit
47d8cd916e
@ -391,7 +391,7 @@ int _mi_prim_reset(void* start, size_t size) {
|
||||
err = unix_madvise(start, size, MADV_DONTNEED);
|
||||
}
|
||||
#else
|
||||
int err = unix_madvise(start, csize, MADV_DONTNEED);
|
||||
int err = unix_madvise(start, size, MADV_DONTNEED);
|
||||
#endif
|
||||
return err;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user