From 9966a6a4b7557a7cf4a85bc4865698f5c878e492 Mon Sep 17 00:00:00 2001 From: AMS21 <19614997+AMS21@users.noreply.github.com> Date: Mon, 22 Jul 2019 20:35:30 +0000 Subject: [PATCH] Fix use old style cast --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 0005fe4d..1fba1cc4 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -122,7 +122,7 @@ SPDLOG_INLINE void prevent_child_fd(FILE *f) #ifdef _WIN32 #if !defined(__cplusplus_winrt) - auto file_handle = (HANDLE)_get_osfhandle(_fileno(f)); + auto file_handle = reinterpret_cast(_get_osfhandle(_fileno(f))); if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0)) throw spdlog_ex("SetHandleInformation failed", errno); #endif