From 47f52aa6be9b8d8dc8e19b98018a300775446c08 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 13 Oct 2026 20:04:12 -1000 Subject: [PATCH] Use a size_t loop counter in the prefix table test --- tests/components/nfc/test_ndef_record_uri.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/nfc/test_ndef_record_uri.cpp b/tests/components/nfc/test_ndef_record_uri.cpp index 14d1bf22671..5629c23c9f6 100644 --- a/tests/components/nfc/test_ndef_record_uri.cpp +++ b/tests/components/nfc/test_ndef_record_uri.cpp @@ -58,8 +58,8 @@ static constexpr const char *SPEC_PREFIXES[] = {"", "urn:nfc:"}; TEST(NdefRecordUri, DecodeEveryPrefixCode) { - for (uint8_t code = 1; code < std::size(SPEC_PREFIXES); code++) - EXPECT_EQ(decode({code, 'x'}), std::string(SPEC_PREFIXES[code]) + "x") << "code " << int(code); + for (size_t code = 1; code < std::size(SPEC_PREFIXES); code++) + EXPECT_EQ(decode({static_cast(code), 'x'}), std::string(SPEC_PREFIXES[code]) + "x") << "code " << code; } TEST(NdefRecordUri, DecodeAcceptsLastPrefixCode) { EXPECT_EQ(decode({0x23, 'x'}), "urn:nfc:x"); }