diff options
author | Chris Robinson <[email protected]> | 2024-01-03 14:58:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2024-01-03 14:58:07 -0800 |
commit | 18349e1da2c79d0f41c8c4f12ccd065f91618a6f (patch) | |
tree | 43124b48b1542f9049d20a01f0c625a954b96510 /common | |
parent | e90075031dfeec7ff03d5d1c5e319e7472312f46 (diff) |
Avoid using bit_cast for pointer types
Diffstat (limited to 'common')
-rw-r--r-- | common/dynload.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/dynload.cpp b/common/dynload.cpp index 86c36e00..333a9435 100644 --- a/common/dynload.cpp +++ b/common/dynload.cpp @@ -3,13 +3,12 @@ #include "dynload.h" -#include "albit.h" -#include "strutils.h" - #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> +#include "strutils.h" + void *LoadLib(const char *name) { std::wstring wname{utf8_to_wstr(name)}; @@ -18,7 +17,7 @@ void *LoadLib(const char *name) void CloseLib(void *handle) { FreeLibrary(static_cast<HMODULE>(handle)); } void *GetSymbol(void *handle, const char *name) -{ return al::bit_cast<void*>(GetProcAddress(static_cast<HMODULE>(handle), name)); } +{ return reinterpret_cast<void*>(GetProcAddress(static_cast<HMODULE>(handle), name)); } #elif defined(HAVE_DLFCN_H) |