Changed uint_least8_t to char in union.

This commit is contained in:
jwellbelove 2017-03-09 10:36:55 +00:00
parent 06583f3edf
commit c68e1e5be7

View File

@ -101,6 +101,7 @@ namespace etl
//***************************************************************************
/// Aligned storage
/// LENGTH should be determined in terms of sizeof()
///\ingroup alignment
//***************************************************************************
template <const size_t LENGTH, const size_t ALIGNMENT>
@ -174,7 +175,7 @@ namespace etl
union
{
uint_least8_t data[LENGTH];
char data[LENGTH];
typename etl::type_with_alignment<ALIGNMENT>::type __etl_alignment_type__; // A POD type that has the same alignment as ALIGNMENT.
};
};