mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-27 13:33:18 +08:00
commit
07c6e60a5a
2
src/os.c
2
src/os.c
@ -1036,7 +1036,7 @@ static size_t mi_os_numa_nodex() {
|
|||||||
static size_t mi_os_numa_node_countx(void) {
|
static size_t mi_os_numa_node_countx(void) {
|
||||||
ULONG numa_max = 0;
|
ULONG numa_max = 0;
|
||||||
GetNumaHighestNodeNumber(&numa_max);
|
GetNumaHighestNodeNumber(&numa_max);
|
||||||
return (numa_max + 1);
|
return ((size_t)numa_max + 1);
|
||||||
}
|
}
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
#include <sys/syscall.h> // getcpu
|
#include <sys/syscall.h> // getcpu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user