From a8ebbafdf34fb33817cbb1c5bbafa1668befd65c Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 6 Nov 2020 08:32:32 -0500 Subject: Fix some warnings picked up by new compiler flags --- src/lib/utils/dyn_load/dyn_load.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/utils/dyn_load') diff --git a/src/lib/utils/dyn_load/dyn_load.cpp b/src/lib/utils/dyn_load/dyn_load.cpp index b32fe4b3a..c9f455b3a 100644 --- a/src/lib/utils/dyn_load/dyn_load.cpp +++ b/src/lib/utils/dyn_load/dyn_load.cpp @@ -58,7 +58,7 @@ Dynamically_Loaded_Library::~Dynamically_Loaded_Library() #if defined(BOTAN_TARGET_OS_HAS_POSIX1) ::dlclose(m_lib); #elif defined(BOTAN_TARGET_OS_HAS_WIN32) - ::FreeLibrary((HMODULE)m_lib); + ::FreeLibrary(reinterpret_cast(m_lib)); #endif } @@ -69,7 +69,7 @@ void* Dynamically_Loaded_Library::resolve_symbol(const std::string& symbol) #if defined(BOTAN_TARGET_OS_HAS_POSIX1) addr = ::dlsym(m_lib, symbol.c_str()); #elif defined(BOTAN_TARGET_OS_HAS_WIN32) - addr = reinterpret_cast(::GetProcAddress((HMODULE)m_lib, symbol.c_str())); + addr = reinterpret_cast(::GetProcAddress(reinterpret_cast(m_lib), symbol.c_str())); #endif if(!addr) -- cgit v1.2.3