1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-08 21:03:49 +01:00

[rtttl] Fix clang-tidy sign comparison error (#11065)

This commit is contained in:
J. Nick Koston
2025-10-06 12:26:59 -05:00
committed by GitHub
parent cba85c0925
commit 75867842ea

View File

@@ -215,7 +215,7 @@ void Rtttl::loop() {
sample[x].right = 0; 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; break;
} }
this->samples_sent_++; this->samples_sent_++;