From 8d39d9c07563fcfdcba1c05b438464b559685b69 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 8 Nov 2022 16:33:50 +0100 Subject: [PATCH] [tests] fix comparison width warning (#8380) --- tests/unit/test_network_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_network_data.cpp b/tests/unit/test_network_data.cpp index 9d1523b74..a41238da0 100644 --- a/tests/unit/test_network_data.cpp +++ b/tests/unit/test_network_data.cpp @@ -93,7 +93,7 @@ void VerifyRlocsArray(const uint16_t *aRlocs, uint16_t aRlocsLength, const uint1 printf("\nRLOCs: { "); - for (uint8_t index = 0; index < aRlocsLength; index++) + for (uint16_t index = 0; index < aRlocsLength; index++) { VerifyOrQuit(aRlocs[index] == aExpectedRlocs[index]); printf("0x%04x ", aRlocs[index]);