mirror of
https://github.com/esphome/esphome.git
synced 2025-10-08 04:43:46 +01:00
[statsd] Fix clang-tidy sign comparison error (#11069)
This commit is contained in:
@@ -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_),
|
int n_bytes = this->sock_->sendto(out->c_str(), out->length(), 0, reinterpret_cast<sockaddr *>(&this->destination_),
|
||||||
sizeof(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());
|
ESP_LOGE(TAG, "Failed to send UDP packed (%d of %d)", n_bytes, out->length());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user