1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-07 20:33:47 +01:00

[statsd] Fix clang-tidy sign comparison error (#11069)

This commit is contained in:
J. Nick Koston
2025-10-06 11:12:39 -05:00
committed by GitHub
parent 8cfb6578d1
commit a88182c8e3

View File

@@ -151,7 +151,7 @@ void StatsdComponent::send_(std::string *out) {
int n_bytes = this->sock_->sendto(out->c_str(), out->length(), 0, reinterpret_cast<sockaddr *>(&this->destination_),
sizeof(this->destination_));
if (n_bytes != out->length()) {
if (n_bytes != static_cast<int>(out->length())) {
ESP_LOGE(TAG, "Failed to send UDP packed (%d of %d)", n_bytes, out->length());
}
#endif