Closed Dr-Emann closed 7 years ago
The remainder should be subtracted from the unit, not the size: e.g.
next_multiple(4, 4096); // returns 4 next_multiple(10000, 4096); // returns 18192
Thanks for the PR, and good catch!
A couple of small fixes :
mmap-alloc: Fix bug in next_multiple
CHANGELOG.md
Other than that, looks good!
Thanks!
The remainder should be subtracted from the unit, not the size: e.g.