Skip to content

Commit

Permalink
Update simple_writer.cpp
Browse files Browse the repository at this point in the history
Fix casting to HANDLE
  • Loading branch information
HTRamsey committed Aug 8, 2024
1 parent d3c8503 commit df9d1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ulog_cpp/simple_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void SimpleWriter::fsync()
if (_file) {
fflush(_file);
#ifdef _WIN32
FlushFileBuffers(static_cast<HANDLE>(_fileno(_file)));
FlushFileBuffers(reinterpret_cast<HANDLE>(static_cast<uintptr_t>(_fileno(_file))));
#else
::fsync(fileno(_file));
#endif
Expand Down

0 comments on commit df9d1c1

Please sign in to comment.