[network-data] avoid comparison of narrow type with wide type in loop (#4724)

This commit is contained in:
Jonathan Hui
2020-03-24 11:09:20 -07:00
parent c136ac2029
commit 35bb0027d0
+1 -2
View File
@@ -309,7 +309,6 @@ void Leader::SendCommissioningGetResponse(const Coap::Message & aRequest,
{
otError error = OT_ERROR_NONE;
Coap::Message *message;
uint8_t index;
uint8_t * data = NULL;
uint8_t length = 0;
@@ -337,7 +336,7 @@ void Leader::SendCommissioningGetResponse(const Coap::Message & aRequest,
}
else
{
for (index = 0; index < aLength; index++)
for (uint16_t index = 0; index < aLength; index++)
{
uint8_t type;