aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/dyn_load
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-06 08:32:32 -0500
committerJack Lloyd <[email protected]>2020-11-06 09:19:52 -0500
commita8ebbafdf34fb33817cbb1c5bbafa1668befd65c (patch)
tree384c09fb1d82123e6ee1549afb8193c25efe5cc9 /src/lib/utils/dyn_load
parent6f7cb7fd973d3bc04a34f9cf77ac35414bf69ea6 (diff)
Fix some warnings picked up by new compiler flags
Diffstat (limited to 'src/lib/utils/dyn_load')
-rw-r--r--src/lib/utils/dyn_load/dyn_load.cpp4
1 files changed, 2 insertions, 2 deletions
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<HMODULE>(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<void*>(::GetProcAddress((HMODULE)m_lib, symbol.c_str()));
+ addr = reinterpret_cast<void*>(::GetProcAddress(reinterpret_cast<HMODULE>(m_lib), symbol.c_str()));
#endif
if(!addr)