Skip to content

Commit

Permalink
Merge pull request #2179 from ibmibmibm/fix-old-style-cast
Browse files Browse the repository at this point in the history
Avoid c-style casting
  • Loading branch information
gabime committed Nov 19, 2021
2 parents ca1eaed + 8d46977 commit 94d2a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/sinks/stdout_sinks-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SPDLOG_INLINE stdout_sink_base<ConsoleMutex>::stdout_sink_base(FILE *file)
#ifdef _WIN32
// get windows handle from the FILE* object

handle_ = (HANDLE)::_get_osfhandle(::_fileno(file_));
handle_ = reinterpret_cast<HANDLE>(::_get_osfhandle(::_fileno(file_)));

// don't throw to support cases where no console is attached,
// and let the log method to do nothing if (handle_ == INVALID_HANDLE_VALUE).
Expand Down

0 comments on commit 94d2a84

Please sign in to comment.