From 2bec034b97febb14ceb252ba3dfa04f8de91010a Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Fri, 21 Jun 2024 18:59:28 +0200 Subject: [PATCH] Fix compiler warning --- cmake/x86_cpuid.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/x86_cpuid.cmake b/cmake/x86_cpuid.cmake index a110c110..0a81d4ef 100644 --- a/cmake/x86_cpuid.cmake +++ b/cmake/x86_cpuid.cmake @@ -17,7 +17,7 @@ check_cxx_source_compiles(" primecount::run_cpuid(1, 0, abcd); int ecx = abcd[2]; - if (ecx & (1 << 23) == (1 << 23)) + if ((ecx & (1 << 23)) == (1 << 23)) std::cout << \"CPU supports POPCNT!\" << std::endl; else std::cout << \"CPU does not support POPCNT!\" << std::endl;