From 4ee47af0e535676100380034dbc5e05c2f1b1642 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 21 Jan 2013 12:28:42 -0700 Subject: [PATCH] windows: use hweight64(), it's a 64-bit type Courtesy of Bruce. Signed-off-by: Jens Axboe --- os/windows/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/windows/posix.c b/os/windows/posix.c index c4d738c7..f5d53001 100755 --- a/os/windows/posix.c +++ b/os/windows/posix.c @@ -69,7 +69,7 @@ int GetNumLogicalProcessors(void) for (i = 0; i < len / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION); i++) { if (processor_info[i].Relationship == RelationProcessorCore) - num_processors += hweight32(processor_info[i].ProcessorMask); + num_processors += hweight64(processor_info[i].ProcessorMask); } free(processor_info); -- 2.25.1