Added preprocessor if to clarify processor count workaround code is only needed on 32-bit builds (following code review)
diff --git a/src/util.cc b/src/util.cc
index e8455ec..6ea854b 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -481,6 +481,7 @@
int GetProcessorCount() {
#ifdef _WIN32
+#ifndef _WIN64
// Need to use GetLogicalProcessorInformationEx to get real core count on
// machines with >64 cores. See https://stackoverflow.com/a/31209344/21475
DWORD len = 0;
@@ -508,7 +509,7 @@
}
}
}
- // fallback just in case
+#endif
return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
#else
#ifdef CPU_COUNT