Unverified Commit 9966a6a4 authored by AMS21's avatar AMS21 Committed by GitHub

Fix use old style cast

parent 20a1d1c5
......@@ -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<HANDLE>(_get_osfhandle(_fileno(f)));
if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0))
throw spdlog_ex("SetHandleInformation failed", errno);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment