diff --git a/src/sna/sna_cpu.c b/src/sna/sna_cpu.c index ce69a39c..9e3d9657 100644 --- a/src/sna/sna_cpu.c +++ b/src/sna/sna_cpu.c @@ -44,7 +44,7 @@ unsigned sna_cpu_detect(void) unsigned int eax, ebx, ecx, edx; unsigned features = 0; - if (__get_cpuid(1, eax, ebx, ecx, edx)) { + if (__get_cpuid(1, &eax, &ebx, &ecx, &edx)) { if (eax & bit_SSE3) features |= SSE3; @@ -70,7 +70,7 @@ unsigned sna_cpu_detect(void) features |= SSE2; } - if (__get_cpuid(7, eax, ebx, ecx, edx)) { + if (__get_cpuid(7, &eax, &ebx, &ecx, &edx)) { if (eax & bit_AVX2) features |= AVX2; }