Skip to content

Commit

Permalink
fix type conversion
Browse files Browse the repository at this point in the history
Signed-off-by: dentiny <[email protected]>
  • Loading branch information
dentiny committed Jan 13, 2025
1 parent ebcf2fa commit 7dfaced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ray/util/pipe_logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ size_t Read(HANDLE read_handle, char *data, size_t len) {
return bytes_read;
}
void CompleteWriteEOFIndicator(HANDLE write_handle) {
size_t bytes_written = 0;
DWORD bytes_written = 0;
BOOL result = WriteFile(
write_handle, kEofIndicator.c_str(), kEofIndicator.size(), &bytes_written, nullptr);
RAY_CHECK_EQ(bytes_written, static_cast<ssize_t>(kEofIndicator.size()));
RAY_CHECK_EQ(bytes_written, reinterpret_cast<DWORD>(kEofIndicator.size()));
RAY_CHECK(result);
}
#endif
Expand Down

0 comments on commit 7dfaced

Please sign in to comment.