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
1 changed files with 2 additions and 2 deletions

View File

@ -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))
{