Merge pull request #259 from DerVogel2020/master

fix: avoid warning
This commit is contained in:
Daan 2020-06-16 11:47:45 -07:00 committed by GitHub
commit 07c6e60a5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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