mirror of
https://github.com/espressif/openthread.git
synced 2026-09-10 03:00:09 +00:00
[clang-tidy] fix bugprone-too-small-loop-variable warnings (#9321)
This commit is contained in:
@@ -84,7 +84,7 @@ void otPlatFlashInit(otInstance *aInstance)
|
||||
|
||||
if (create)
|
||||
{
|
||||
for (uint8_t index = 0; index < SWAP_NUM; index++)
|
||||
for (uint8_t index = 0; index < (uint8_t)SWAP_NUM; index++)
|
||||
{
|
||||
otPlatFlashErase(aInstance, index);
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ otError ProcessNodeIdFilter(void *aContext, uint8_t aArgsLength, char *aArgs[])
|
||||
break;
|
||||
}
|
||||
|
||||
for (uint16_t nodeId = 0; nodeId <= MAX_NETWORK_SIZE; nodeId++)
|
||||
for (uint16_t nodeId = 0; nodeId <= (uint16_t)MAX_NETWORK_SIZE; nodeId++)
|
||||
{
|
||||
if (FilterContainsId(nodeId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user