mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
fix compile without MADV_FREE (pr #715 by elbaro)
This commit is contained in:
parent
f08d9d489c
commit
47d8cd916e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue