fix function cast warning on Windows with gcc9

This commit is contained in:
Yann Collet
2019-10-18 15:45:57 -07:00
parent 58c59341d3
commit 1bd6c15b6b
+2 -2
View File
@@ -399,8 +399,8 @@ int UTIL_countPhysicalCores(void)
DWORD returnLength = 0;
size_t byteOffset = 0;
glpi = (LPFN_GLPI)GetProcAddress(GetModuleHandle(TEXT("kernel32")),
"GetLogicalProcessorInformation");
glpi = (LPFN_GLPI)(void*)GetProcAddress(GetModuleHandle(TEXT("kernel32")),
"GetLogicalProcessorInformation");
if (glpi == NULL) {
goto failed;