Skip to content

Commit d8438a6

Browse files
committed
processexecutor.cpp: fixed bugprone-unintended-char-ostream-output clang-tidy warnings
1 parent eb846da commit d8438a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/processexecutor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ namespace {
125125
const ssize_t bytes_written = write(mWpipe, data, to_write);
126126
if (bytes_written <= 0) {
127127
const int err = errno;
128-
std::cerr << "#### ThreadExecutor::writeToPipeInternal() error for type " << type << ": " << std::strerror(err) << std::endl;
128+
std::cerr << "#### ThreadExecutor::writeToPipeInternal() error for type " << static_cast<unsigned char>(type) << ": " << std::strerror(err) << std::endl;
129129
std::exit(EXIT_FAILURE);
130130
}
131131
// TODO: write until everything is written
132132
if (bytes_written != to_write) {
133-
std::cerr << "#### ThreadExecutor::writeToPipeInternal() error for type " << type << ": insufficient data written (expected: " << to_write << " / got: " << bytes_written << ")" << std::endl;
133+
std::cerr << "#### ThreadExecutor::writeToPipeInternal() error for type " << static_cast<unsigned char>(type) << ": insufficient data written (expected: " << to_write << " / got: " << bytes_written << ")" << std::endl;
134134
std::exit(EXIT_FAILURE);
135135
}
136136
}

0 commit comments

Comments
 (0)