fixing some compiler warnings

signed vs. unsigned, deprecated functions, printf parameter size mismatch
This commit is contained in:
Frank
2025-12-17 00:03:18 +01:00
parent f4fd244808
commit 02d23b3316
3 changed files with 5 additions and 5 deletions

View File

@@ -335,7 +335,7 @@ void IRAM_ATTR_YN Segment::setPixelColorXY(int x, int y, uint32_t col) //WLEDMM:
x *= glen_; // expand to physical pixels
y *= glen_; // expand to physical pixels
if (x >= wid_ || y >= hei_) return; // if pixel would fall out of segment just exit
if (unsigned(x) >= wid_ || unsigned(y) >= hei_) return; // if pixel would fall out of segment just exit
const int grp_ = grouping; // WLEDMM optimization
for (int j = 0; j < grp_; j++) { // groupping vertically