diff options
author | Chris Robinson <[email protected]> | 2012-10-08 00:32:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-08 00:32:35 -0700 |
commit | 999f0783c5e88ddbcdf258a560814471538bba1f (patch) | |
tree | 155a025e2d46237284f9c89a898d1f1d882ced89 /Alc | |
parent | 2a6dd2f243a4b1ec72a704158c2465b5551b2034 (diff) |
Fix a type conversion warning
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/helpers.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |