diff --git a/libs/main/system/piprocess.cpp b/libs/main/system/piprocess.cpp index 74730ec4..aa4c4713 100644 --- a/libs/main/system/piprocess.cpp +++ b/libs/main/system/piprocess.cpp @@ -211,14 +211,14 @@ PRIVATE_DEFINITION_START(PIProcess) while (1) { # ifdef WINDOWS DWORD available = 0; - bytes_read = 0; + bytes_read = 0; PeekNamedPipe(pipes[pipe_type][PipeRead], nullptr, 0, nullptr, &available, nullptr); if (available > 0) { BOOL ok = ReadFile(pipes[pipe_type][PipeRead], - read_buffer.data(offset), - piMini(available, read_buffer.size() - offset), - &bytes_read, - nullptr); + read_buffer.data(offset), + piMini(available, read_buffer.size() - offset), + &bytes_read, + nullptr); if (!ok) bytes_read = 0; } # else @@ -244,7 +244,7 @@ PRIVATE_DEFINITION_START(PIProcess) # else sz = ::write(pipes[StdIn][PipeWrite], data.data(), data.size()); # endif - return sz == data.size_s(); + return sz == (SizeType)data.size_s(); } PRIVATE_DEFINITION_END(PIProcess) @@ -354,7 +354,7 @@ void PIProcess::startProc(bool detached) { if (WIFEXITED(exit_code)) { exec_finished = WEXITSTATUS(exit_code) != 127; } - pid_ = 0; + pid_ = 0; if (!detached) PRIVATE->pid = pid_; } }