From a36640bcfc7b0b113f031e37e6aad19c8505d37f Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Fri, 6 Jan 2023 13:51:25 -0800 Subject: [PATCH] more windows fixes --- core/os/os_windows.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/os/os_windows.odin b/core/os/os_windows.odin index aef7d44d5..ba49db1a8 100644 --- a/core/os/os_windows.odin +++ b/core/os/os_windows.odin @@ -130,7 +130,7 @@ get_page_size :: proc() -> int { @(private) _processor_core_count :: proc() -> int { - length : c.int = 0 + length : win32.DWORD = 0 result := win32.GetLogicalProcessorInformation(nil, &length) thread_count := 0 @@ -140,9 +140,9 @@ _processor_core_count :: proc() -> int { result = win32.GetLogicalProcessorInformation(&processors[0], &length) if result { for processor in processors { - if processor.Relationship == win32.RelationProcessorCore { + if processor.Relationship == .RelationProcessorCore { thread := intrinsics.count_ones(processor.ProcessorMask) - thread_count += thread + thread_count += int(thread) } } }