mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
fix function cast warning on Windows with gcc9
This commit is contained in:
@ -399,8 +399,8 @@ int UTIL_countPhysicalCores(void)
|
|||||||
DWORD returnLength = 0;
|
DWORD returnLength = 0;
|
||||||
size_t byteOffset = 0;
|
size_t byteOffset = 0;
|
||||||
|
|
||||||
glpi = (LPFN_GLPI)GetProcAddress(GetModuleHandle(TEXT("kernel32")),
|
glpi = (LPFN_GLPI)(void*)GetProcAddress(GetModuleHandle(TEXT("kernel32")),
|
||||||
"GetLogicalProcessorInformation");
|
"GetLogicalProcessorInformation");
|
||||||
|
|
||||||
if (glpi == NULL) {
|
if (glpi == NULL) {
|
||||||
goto failed;
|
goto failed;
|
||||||
|
Reference in New Issue
Block a user