From b71fc03a966a12459c54f9be42041c6b3b8bbf56 Mon Sep 17 00:00:00 2001 From: Evgeny Margolis Date: Sun, 22 Jan 2023 23:30:39 -0800 Subject: [PATCH] Update src/lib/core/TLVReader.cpp Co-authored-by: Karsten Sperling <113487422+ksperling-apple@users.noreply.github.com> --- src/lib/core/TLVReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core/TLVReader.cpp b/src/lib/core/TLVReader.cpp index cd4a90c7cef43a..99c46702e6c7d3 100644 --- a/src/lib/core/TLVReader.cpp +++ b/src/lib/core/TLVReader.cpp @@ -347,7 +347,7 @@ CHIP_ERROR TLVReader::Get(Optional & lsid) const uint8_t * lsidPtr = infoSeparator1 + 1; len -= static_cast(lsidPtr - bytes); - const uint8_t * infoSeparator2 = reinterpret_cast(memchr(lsidPtr, kUnicodeInformationSeparator1, len)); + const uint8_t * infoSeparator2 = static_cast(memchr(lsidPtr, kUnicodeInformationSeparator1, len)); if (infoSeparator2 != nullptr) { len = static_cast(infoSeparator2 - lsidPtr);