mirror of
https://github.com/esphome/esphome.git
synced 2025-10-08 12:53:45 +01:00
[rtttl] Fix clang-tidy sign comparison error (#11065)
This commit is contained in:
@@ -215,7 +215,7 @@ void Rtttl::loop() {
|
||||
sample[x].right = 0;
|
||||
}
|
||||
|
||||
if (x >= SAMPLE_BUFFER_SIZE || this->samples_sent_ >= this->samples_count_) {
|
||||
if (static_cast<size_t>(x) >= SAMPLE_BUFFER_SIZE || this->samples_sent_ >= this->samples_count_) {
|
||||
break;
|
||||
}
|
||||
this->samples_sent_++;
|
||||
|
Reference in New Issue
Block a user