From 6d44afc7dd129603401ce1a7ee4a059be1fbdda4 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Wed, 24 Jul 2024 06:24:51 +0200 Subject: Replace 'reinterpret_cast' with 'static_cast' --- Source/Core/Common/DynamicLibrary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/DynamicLibrary.cpp') diff --git a/Source/Core/Common/DynamicLibrary.cpp b/Source/Core/Common/DynamicLibrary.cpp index 7871198dda..73c25ce2a2 100644 --- a/Source/Core/Common/DynamicLibrary.cpp +++ b/Source/Core/Common/DynamicLibrary.cpp @@ -95,7 +95,7 @@ void DynamicLibrary::Close() return; #ifdef _WIN32 - FreeLibrary(reinterpret_cast(m_handle)); + FreeLibrary(static_cast(m_handle)); #else dlclose(m_handle); #endif @@ -105,7 +105,7 @@ void DynamicLibrary::Close() void* DynamicLibrary::GetSymbolAddress(const char* name) const { #ifdef _WIN32 - return reinterpret_cast(GetProcAddress(reinterpret_cast(m_handle), name)); + return reinterpret_cast(GetProcAddress(static_cast(m_handle), name)); #else return reinterpret_cast(dlsym(m_handle, name)); #endif -- cgit v1.2.3