From 2a5815c579896dbfe6c5f5c65cc8487a221be8a4 Mon Sep 17 00:00:00 2001 From: Ian Gray Date: Mon, 3 Jan 2022 15:46:38 +0000 Subject: [PATCH] Fix signed (int) being compared against unsigned (size_t) This used to emit two warnings about signedness comparison, so is updated to use an appropriate type. --- src/ESPUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ESPUI.cpp b/src/ESPUI.cpp index 6a82d0b..41589b9 100644 --- a/src/ESPUI.cpp +++ b/src/ESPUI.cpp @@ -785,7 +785,7 @@ void ESPUIClass::updateControl(Control* control, int clientId) // function like this and it's clients array is private int tryId = 0; - for (int count = 0; count < this->ws->count();) + for (size_t count = 0; count < this->ws->count();) { if (this->ws->hasClient(tryId)) { @@ -943,7 +943,7 @@ void ESPUIClass::addGraphPoint(uint16_t id, int nValue, int clientId) // function like this and it's clients array is private int tryId = 0; - for (int count = 0; count < this->ws->count();) + for (size_t count = 0; count < this->ws->count();) { if (this->ws->hasClient(tryId)) {