fix compile without MADV_FREE (pr #715 by elbaro)

This commit is contained in:
Daan Leijen 2023-03-30 09:21:07 -07:00
parent f08d9d489c
commit 47d8cd916e

View File

@ -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;
}