From 999f0783c5e88ddbcdf258a560814471538bba1f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 8 Oct 2012 00:32:35 -0700 Subject: Fix a type conversion warning --- Alc/helpers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Alc/helpers.c') diff --git a/Alc/helpers.c b/Alc/helpers.c index e84454fb..d99a70e6 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -110,13 +110,14 @@ void FillCPUCaps(ALuint capfilter) } } #elif defined(HAVE_WINDOWS_H) + HMODULE k32 = GetModuleHandleA("kernel32.dll"); BOOL (WINAPI*IsProcessorFeaturePresent)(DWORD ProcessorFeature); - IsProcessorFeaturePresent = GetProcAddress(GetModuleHandleA("kernel32.dll"), "IsProcessorFeaturePresent"); + IsProcessorFeaturePresent = (BOOL(WINAPI*)(DWORD))GetProcAddress(k32, "IsProcessorFeaturePresent"); if(!IsProcessorFeaturePresent) ERR("IsProcessorFeaturePresent not available; CPU caps not detected\n"); else { - if(IsProcessorFeaturePresent(6/*PF_XMMI_INSTRUCTIONS_AVAILABLE*/)) + if(IsProcessorFeaturePresent(PF_XMMI_INSTRUCTIONS_AVAILABLE)) caps |= CPU_CAP_SSE; } #endif -- cgit v1.2.3