mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
fix unix build warnings
This commit is contained in:
parent
d1d65fbca4
commit
9d6a5acb22
6 changed files with 10 additions and 8 deletions
|
@ -429,7 +429,7 @@ int mi_reserve_huge_os_pages_interleave(size_t pages) mi_attr_noexcept {
|
|||
// reserve evenly among numa nodes
|
||||
for (int numa_node = 0; numa_node < numa_count && pages > 0; numa_node++) {
|
||||
size_t node_pages = pages_per; // can be 0
|
||||
if (numa_node < pages_mod) node_pages++;
|
||||
if ((size_t)numa_node < pages_mod) node_pages++;
|
||||
int err = mi_reserve_huge_os_pages_at(node_pages, numa_node);
|
||||
if (err) return err;
|
||||
if (pages < node_pages) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue