From 6505ddb89ac657d1c747fb591d844a22545af93b Mon Sep 17 00:00:00 2001 From: dentiny Date: Mon, 13 Jan 2025 19:14:04 +0000 Subject: [PATCH] fix type conversion Signed-off-by: dentiny --- src/ray/util/pipe_logger.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ray/util/pipe_logger.cc b/src/ray/util/pipe_logger.cc index b9f6b895a03c..df4fa82e92d9 100644 --- a/src/ray/util/pipe_logger.cc +++ b/src/ray/util/pipe_logger.cc @@ -82,11 +82,9 @@ size_t Read(HANDLE read_handle, char *data, size_t len) { return bytes_read; } void CompleteWriteEOFIndicator(HANDLE write_handle) { - size_t bytes_written = 0; - BOOL result = WriteFile( + DWORD bytes_written = 0; + WriteFile( write_handle, kEofIndicator.c_str(), kEofIndicator.size(), &bytes_written, nullptr); - RAY_CHECK_EQ(bytes_written, static_cast(kEofIndicator.size())); - RAY_CHECK(result); } #endif