summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os.c b/src/os.c
index f33cfbc..f7d5f7b 100644
--- a/src/os.c
+++ b/src/os.c
@@ -1036,7 +1036,7 @@ static size_t mi_os_numa_nodex() {
static size_t mi_os_numa_node_countx(void) {
ULONG numa_max = 0;
GetNumaHighestNodeNumber(&numa_max);
- return (numa_max + 1);
+ return ((size_t)numa_max + 1);
}
#elif defined(__linux__)
#include <sys/syscall.h> // getcpu