signed compare

This commit is contained in:
folkert van heusden 2024-05-12 02:31:40 +02:00
parent eeb94fffd4
commit 2c8fc58640
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -146,14 +146,14 @@ void dc11::test_serial(const std::string & txt) const
#if defined(ESP32)
uart_write_bytes(ESP32_UART, txt.c_str(), txt.size());
#elif IS_POSIX
if (write(serial_fd, txt.c_str(), txt.size()) != txt.size())
if (write(serial_fd, txt.c_str(), txt.size()) != ssize_t(txt.size()))
DOLOG(warning, false, "DC11 failed to send test string to line %d", i);
#endif
}
else if (pfds[dc11_n_lines + i].fd != INVALID_SOCKET) {
DOLOG(info, false, "DC11 socket line %d", i);
if (write(pfds[dc11_n_lines + i].fd, txt.c_str(), txt.size()) != txt.size())
if (write(pfds[dc11_n_lines + i].fd, txt.c_str(), txt.size()) != ssize_t(txt.size()))
DOLOG(warning, false, "DC11 failed to send test string to line %d", i);
}
else {