1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-24 07:20:53 +00:00

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.
This commit is contained in:
Ian Gray 2022-01-03 15:46:38 +00:00
parent 7e5331d54f
commit 2a5815c579

View File

@ -785,7 +785,7 @@ void ESPUIClass::updateControl(Control* control, int clientId)
// function like this and it's clients array is private // function like this and it's clients array is private
int tryId = 0; 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)) 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 // function like this and it's clients array is private
int tryId = 0; 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)) if (this->ws->hasClient(tryId))
{ {