From 8271276fd22a53bc1eb3e04982fde32c9882deff Mon Sep 17 00:00:00 2001 From: Asher Dawes Date: Sat, 16 Jun 2018 16:01:44 -0700 Subject: [PATCH] Troubleshooting Windows cpu id --- src/crypto/verus_hash.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crypto/verus_hash.h b/src/crypto/verus_hash.h index c66d75e79..9025e053b 100644 --- a/src/crypto/verus_hash.h +++ b/src/crypto/verus_hash.h @@ -98,11 +98,11 @@ inline bool IsCPUVerusOptimized() unsigned int eax,ebx,ecx,edx; #ifdef _WIN32 unsigned int CPUInfo[4]; - CPUInfo[0] = &eax; - CPUInfo[1] = &ebx; - CPUInfo[2] = &ecx; - CPUInfo[3] = &edx; - if (!__get_cpuid(CPUInfo, 1)) + CPUInfo[0] = (unsigned int) &eax; + CPUInfo[1] = (unsigned int) &ebx; + CPUInfo[2] = (unsigned int) &ecx; + CPUInfo[3] = (unsigned int) &edx; + if (!__get_cpuid(CPUInfo, (unsigned int) 1)) #else if (!__get_cpuid(1,&eax,&ebx,&ecx,&edx)) #endif