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:
parent
7e5331d54f
commit
2a5815c579
@ -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))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user