From d56a586ad31bd2686e9902ce0ed82efb079a5ca6 Mon Sep 17 00:00:00 2001 From: Timon Zijnge Date: Mon, 23 Feb 2026 11:42:35 +0100 Subject: [PATCH] #1258 Manchester coding * Cleanup * Fix build error --- include/etl/manchester.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/manchester.h b/include/etl/manchester.h index b019a799..4c35deb8 100644 --- a/include/etl/manchester.h +++ b/include/etl/manchester.h @@ -174,7 +174,7 @@ namespace etl //************************************************************************* /// Alias for memcpy. etl::mem_copy is not suitable for the Manchester /// algorithm because all memory copies are between different types. This - /// alias is a way to respect ETL_USING_BUILTIN_MEMCPY while using the + /// alias is a way to respect ETL_USING_BUILTIN_MEMCPY while using the /// memcpy function signature //************************************************************************* inline void* memcpy(void* dest, const void* src, std::size_t count) ETL_NOEXCEPT @@ -524,7 +524,7 @@ namespace etl uint16_t chunk{}; if (etl::endianness::value() == etl::endian::little) { - chunk = static_cast((encoded[i + 1] << CHAR_BIT | encoded[i]); + chunk = static_cast((encoded[i + 1] << CHAR_BIT) | encoded[i]); } else {