diff --git a/source/common/windows/ur_lib_loader.cpp b/source/common/windows/ur_lib_loader.cpp index d22aff68d9..dd4cfd232b 100644 --- a/source/common/windows/ur_lib_loader.cpp +++ b/source/common/windows/ur_lib_loader.cpp @@ -30,7 +30,7 @@ LibLoader::loadAdapterLibrary(const char *name) { } void *LibLoader::getFunctionPtr(HMODULE handle, const char *func_name) { - return GetProcAddress(handle, func_name); + return reinterpret_cast(GetProcAddress(handle, func_name)); } } // namespace ur_loader