mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
parent
777f785630
commit
d56a586ad3
@ -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<uint16_t>((encoded[i + 1] << CHAR_BIT | encoded[i]);
|
||||
chunk = static_cast<uint16_t>((encoded[i + 1] << CHAR_BIT) | encoded[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user