From f6be473879340bea12151e0eec93f87321047f37 Mon Sep 17 00:00:00 2001 From: asmodai Date: Mon, 14 Dec 2015 01:00:55 +0300 Subject: [PATCH] Fixed types in Sys_CheckCpuInstructionsSupport --- rehlds/public/rehlds/sys_shared.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rehlds/public/rehlds/sys_shared.cpp b/rehlds/public/rehlds/sys_shared.cpp index 54afe5f..e671f46 100644 --- a/rehlds/public/rehlds/sys_shared.cpp +++ b/rehlds/public/rehlds/sys_shared.cpp @@ -42,14 +42,14 @@ cpuinfo_t cpuinfo; void Sys_CheckCpuInstructionsSupport(void) { - int cpuid_data[4]; + unsigned int cpuid_data[4]; #if defined ASMLIB_H - cpuid_ex(cpuid_data, 1, 0); + cpuid_ex((int *)cpuid_data, 1, 0); #elif defined(__GNUC__) __get_cpuid(0x1, &cpuid_data[0], &cpuid_data[1], &cpuid_data[2], &cpuid_data[3]); #else - __cpuidex((int*)cpuid_data, 1, 0); + __cpuidex((int *)cpuid_data, 1, 0); #endif cpuinfo.sse3 = (cpuid_data[2] & SSE3_FLAG) ? 1 : 0; // ecx @@ -59,11 +59,11 @@ void Sys_CheckCpuInstructionsSupport(void) cpuinfo.avx = (cpuid_data[2] & AVX_FLAG) ? 1 : 0; #if defined ASMLIB_H - cpuid_ex(cpuid_data, 7, 0); + cpuid_ex((int *)cpuid_data, 7, 0); #elif defined(__GNUC__) __get_cpuid(0x7, &cpuid_data[0], &cpuid_data[1], &cpuid_data[2], &cpuid_data[3]); #else - __cpuidex((int*)cpuid_data, 7, 0); + __cpuidex((int *)cpuid_data, 7, 0); #endif cpuinfo.avx2 = (cpuid_data[1] & AVX2_FLAG) ? 1 : 0; // ebx