[clang-tidy] fix bugprone-too-small-loop-variable warnings (#9321)

This commit is contained in:
Jonathan Hui
2023-08-01 16:52:34 -07:00
committed by GitHub
parent 94822eadb5
commit 7d6740c9b5
14 changed files with 20 additions and 19 deletions
+2 -2
View File
@@ -309,7 +309,7 @@ void TestParsingHexStrings(void)
for (uint8_t testIter = 0; testIter <= 1; testIter++)
{
for (uint8_t segmentLen = 1; segmentLen <= sizeof(buffer); segmentLen++)
for (size_t segmentLen = 1; segmentLen <= sizeof(buffer); segmentLen++)
{
if (testIter == 0)
{
@@ -324,7 +324,7 @@ void TestParsingHexStrings(void)
len = segmentLen;
printf("\"%s\" segLen:%d -> ", string, segmentLen);
printf("\"%s\" segLen:%zu -> ", string, segmentLen);
while (true)
{